Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Why does SharePoint add the following to text entered into rich text fields of list items?

<div class="ExternalClass85AC900AB26A481DBDC8ADAE7A02F039"><p>....</p></div>

We've seen instances where we have two of these ExternalClass DIV tags wrapping content, even though we didn't add them. They cause the text to have weird, extra spacing on top and bottom, with the only solution for us being to go in and remove them from the HTML of the rich text field. We don't mind the P tags; but the unneeded DIVs are too much. And removing them doesn't affect the content in any way.

Anyone have a solution for this? Thanks.

share|improve this question
    
Use JQuery to remove the div/remove spacing from the div? –  Rawling Jan 30 '12 at 13:36
    
Thanks, Rawling. But that doesn't address the issue of why SP2010 adds the DIVs in the first place. –  Alex C Jan 31 '12 at 6:13
add comment

1 Answer

up vote 1 down vote accepted

Perhaps switching to alternate Rich Text Editor might be best option to get rid of these. At least RadEditor is one relatively common replacement. (I have no affiliation with RadEditor whatsoever).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.