Unwanted Paragraphs

4 posts, 0 answers
  1. Erick
    Erick avatar
    81 posts
    Member since:
    Feb 2010

    Posted 06 Jul 2011 Link to this post

    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
  2. Erick
    Erick avatar
    81 posts
    Member since:
    Feb 2010

    Posted 06 Jul 2011 Link to this post

    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...
  3. Erick
    Erick avatar
    81 posts
    Member since:
    Feb 2010

    Posted 06 Jul 2011 Link to this post

    Ok, we've fixed this by setting the ContentFilters on clientside instead of serverside.
    It seems the DisableFilter function is not working...
  4. Rumen
    Admin
    Rumen avatar
    14028 posts

    Posted 07 Jul 2011 Link to this post

    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!

Back to Top