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

Unwanted Paragraphs

3 Answers 78 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erick
Top achievements
Rank 2
Erick asked on 06 Jul 2011, 03:00 PM
Hi,

We've some problems with the RadEditor, with custom scripts we've fixed almost all problems. But one problem we cann't fix, it is a known behavior problem. With dirty HTML the RadEditor will copy new paragraph on each switch between Design and HTML modes, with result a large white gap under texts:

Some dirty HTML here
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>

I know it's important to have clean HTML script but we have about 200 members which 95% don't have some HTML knowledge. 

We've tried the following fixes:

- Disable ConvertToXHTML filter
- NewLineMode to Br
- ContentAreaMode to both modes

This problem don't happens with all of our members, only ones with dirty HTML templates.

I hope you have some ideas.

Very much thanks!

Jelle

3 Answers, 1 is accepted

Sort by
0
Erick
Top achievements
Rank 2
answered on 06 Jul 2011, 03:09 PM
Update:
It seems this function editor.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml) not is working. When i set ContentFilters to None, this problem is not happening...
0
Erick
Top achievements
Rank 2
answered on 06 Jul 2011, 03:18 PM
Ok, we've fixed this by setting the ContentFilters on clientside instead of serverside.
It seems the DisableFilter function is not working...
0
Rumen
Telerik team
answered on 07 Jul 2011, 10:01 AM
Hi,

The DisableFilter method works as expected on my end. You can see my test in the following video: http://screencast.com/t/rsU32gSXsWu

I performed the test in IE8 on purpose because the IE9 rich text engine is enhanced and produces better XHTML content.

Greetings,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Editor
Asked by
Erick
Top achievements
Rank 2
Answers by
Erick
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or