This is a migrated thread and some comments may be shown as answers.

MOSSRadEditor adding extra <p> tags!!

3 Answers 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Delphi
Top achievements
Rank 1
Delphi asked on 21 Jun 2010, 06:51 PM
This is crazy. Whenever the editor loads, extra spaces appear. Switching from Design to HTML then back to Design adds 1 more set of <p> tags:

</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="content4">
<table cellspacing="0" cellpadding="5" width="620">

If I delete them via the Design view or HTML they just come back. This is occuring a few different places in this page, and is occurring in others. Please help!!

3 Answers, 1 is accepted

Sort by
0
Delphi
Top achievements
Rank 1
answered on 22 Jun 2010, 01:54 AM
It appears it got bored and added some <ol> too

<ol>
    <li> </li>
</ol>

Grr..... I'm going to clean out the entire policy and rebuild it.
0
Rumen
Telerik team
answered on 22 Jun 2010, 01:21 PM
Hi David,

You can experience this problem only if you edit non well formed HTML content and switch between the Html and Design modes of RadEditor or when submitting the content.

The Rich Text Editing engine of the browser that RadEditor's content area IFRAME uses, tries to validate the non well formed content and the <p> tags in it but without success and produces new non valid XHTML content.

This invalid XHTML content misleads the ConvertToXhtml content filter of RadEditor and the editor starts to produce extra paragraphs with every switch between Html and Design mode or when submitting the content. To stop this behavior you can disable the ConvertToXhtml filter by setting the ContentFilters property in the respective ConfigFile.xml and ListCoifgFile.xml files, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.
<property name="ContentFilters">RemoveScripts,MakeUrlsAbsolute,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,IndentHTMLContent</property>

The ConvertToXhtml filter should not be set as a value.

Another approach is to instruct your users to validate and correct the content before submitting it using the W3C validator dialog of RadEditor and manually correct it.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Delphi
Top achievements
Rank 1
answered on 22 Jun 2010, 01:28 PM
Thanks. As I was rewriting the page I noticed a lot of broken tags. I switched the paste method to strip the formatting which has helped a lot.

Tags
Editor
Asked by
Delphi
Top achievements
Rank 1
Answers by
Delphi
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or