
286
❘
CHAPTER 10 WEB PARTS AND XSLT
If you are used to how the Content Editor Web Part worked in SharePoint 2007, you will
notice that it behaves a little differently in SharePoint 2010.
4. To start adding content to the Web Part, click the little arrow on the right side of the Web
Part, and then select Edit Web Part (see Figure 10-6). This will open the Web Part tool pane
on the right side of the page.
FIGURE 10-6
In SharePoint 2007, the fi rst two options would have been Rich Text Editor and Source Editor.
Notice in Figure 10-7 that neither of these options is showing in the new CEWP tool pane.
Don’t worry, though; you can still edit content in the CEWP in SharePoint 2010. To just
edit the content of the Web Part (like the Rich Text Editor button would have done in
SharePoint 2007), simply click in the middle of the Web Part where it says “Click here to
add new content.” From there, you can edit the content just like any other rich HTML area
in SharePoint 2010, by using the ribbon. In the next step, you will see that this is also where
you would add your own HTML code (like the SharePoint 2007 Source Editor button).
5. If you haven’t done so already, click the link in the Web Part that says “Click here to add
new content,” and then from the ribbon click Format Text ➪ HTML ➪ Edit HTML Source
(See Figure 10-8).
Notice that you also have an option to Convert to XHTML. This ca ...