SharePoint Content Editor WebPart PostBack problems

This fix is for when you are trying to add content to the editor web part when it is empty and causes a post back failing to added any content. Add this Jquery line to your JS file and the problem will go away. The problem is Microsoft SharePoint JavaScript that should replace the “add content” text in the editor webpart and the anchor href. By removing the href attribute fromt he anchor the MS JS will still work and the problem will go away:

$(“div.ms-WPBody.ms-wpContentDivSpace .ms-toolbar.ms-selectorlink”).removeAttr(“href”);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s