Body tag added to HTML content

2 posts, 0 answers
  1. Sean
    Sean avatar
    1 posts
    Member since:
    Jul 2008

    Posted 06 Mar 2013 Link to this post

    Hi there,

    We are using the editor to save HTML content to a database.

    For some reason, the editor sometimes adds a HTML body tag to the content.

    For example, the body tag was added to a simple HTML list we had:

    <body class="RadEditorOverrides" contenteditable="true">
            <ul>
                <ul>
                    <ul>
                        <p>&nbsp;</p>
                    </ul>
                </ul>
            </ul>
        </body>

    The content filter I have set is: 

    ContentFilters="RemoveScripts,FixUlBoldItalic,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent,ConvertCharactersToEntities,FixEnclosingP"

    Would anyone be able to offer some advice on how this problem can be resolved?

     

     

  2. Rumen
    Admin
    Rumen avatar
    14011 posts

    Posted 06 Mar 2013 Link to this post

    Hi,

    I am not aware of this problem and I will need your help to reproduce it. Do you use DIV or IFRAME content area mode? If it is iframe, you can set the CssFiles property to point to an empty file, so that no external CSS classes are applied to the body element.

    Regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top