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

Body tag added to HTML content

1 Answer 25 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 06 Mar 2013, 10:18 AM
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?

 

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Mar 2013, 04:58 PM
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.
Tags
Editor
Asked by
Sean
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or