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

Formatting within conten

7 Answers 98 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sandra Eibensteiner
Top achievements
Rank 1
Sandra Eibensteiner asked on 31 Aug 2010, 04:53 PM
Hello,
We have built some (content templates) within our MOSS site. In order to help our colleagues to create a new article easily and in one corporate style. When creating an article you can choose between these. For example one has a header with a certain size and a table, another une only headers and text. 

Our problem: When editing and saving an article we get  space within the content because paragraphs are added and HTML tags are not closed correrctly so the size within content is differnt. I cleaned the conten templates with the editor but the problems are coming again.  What can we do?

Thanx for your help!

7 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Sep 2010, 02:28 PM
Hello Sandra,

Yes, you can experience this problem 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.


All the best,
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
Sandra Eibensteiner
Top achievements
Rank 1
answered on 08 Sep 2010, 11:04 AM
Hello,

we disabled the "converttoXHTML"  Filter. If we want to set a bullet list at one line all content is marked with a bullet at every linebreak.
What should we do? Thank you for your help.

SE
0
Dobromir
Telerik team
answered on 10 Sep 2010, 03:46 PM
Hi Sandra,

RadEditor relays on valid XHTML content to work properly, any invalid XHTML may cause side effects.

My suggestion 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.

Kind regards,
Dobromir
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
Brian Ho
Top achievements
Rank 1
answered on 10 Mar 2011, 11:15 PM
Are there any plans to fix this?  I'm having the same issue where random spaces gets inserted into my table body just switching from Design and HTML mode.  At one point it got so bad that one of the user created 250 pages of empty spaces and got a warning message from IE about script being unresponsive.  I know I can turn off the filter but is there another option?  Like remove paragraph tags in front of Table or UL tags instead of trying to close them??  My editor is randomly inserting </p>, as well as random spaces <div></div> and <p>&nbsp</p> if I have the ConvertXHTMLFilter on.  I'm using the Q3 2010 SP2.  

Also most of my users are not HTML savvy so using the W3C Validator is not an option.

<p>
<table>
<tr>
<td></p>
<div></div>
<div></div>
<div></div>
.... some text
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></td>
</tr>
</table>
</p>


 Any help would be appreciated.   Thanks
0
Brian Ho
Top achievements
Rank 1
answered on 14 Mar 2011, 04:26 PM
Just an update on this, I removed the ConvertToXHTML filter and the editor is still adding in extra spaces in the table everytime I switch from designer view to html view.  Can somebody please look into this?


The filters I'm using are:

ContentFilters="RemoveScripts,EncodeScripts,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,IndentHTMLContent,ConvertCharactersToEntities"
0
Rumen
Telerik team
answered on 15 Mar 2011, 01:49 PM
Hi,

We will release till the end of the business week the new Q1 2011 version of RadControls for ASP.NET AJAX. The ConvertToXhtml fitler is improved and my suggestion is to test the reported scenario. If you still experience any problems please report them by providing sample HTML content and steps to reproduce.

If the <p> tags are multiplied even when the ConvertToXhtml filter or all built-in filters of RadEditor are disabled then the problem is due to the Rich Text Editing engine of the browser that RadEditor's IFRAME content area uses to provide HTML production and rendering.

Best regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Brian Ho
Top achievements
Rank 1
answered on 15 Mar 2011, 09:49 PM
Thanks that's great to hear.  Look forward to it.
Tags
Editor
Asked by
Sandra Eibensteiner
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Sandra Eibensteiner
Top achievements
Rank 1
Dobromir
Telerik team
Brian Ho
Top achievements
Rank 1
Share this question
or