O'Reilly logo

Microsoft® SharePoint® Designer 2010 Unleashed by Kathy Hughes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Problems with Pages After Adding Code to a CEWP

Sometimes, I’ve found that adding certain code to a CEWP in SharePoint 2010 causes issues, such as JavaScript exceptions. For instance, I found that adding the code snippet shown in Listing 6.1 to a CEWP on a Wiki or Web part page caused issues when attempting to add text and interact with the ribbon text formatting commands; none of the ribbon’s text formatting commands would function.

Listing 6.1 Problematic Code in a CEWP

<p align="center"><!--BEGIN LINK CODE!--><linkhref="https://www.somesite.com/styles/ClientButton.css" rel="stylesheet"type="text/css"/>&#160;</p><table class="classname"><tbody><tr><td><div class="classname"><divclass="ROLbtn"><ul><li><a title="Title of Link" href="http://www.websiteURL.com" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required