Hi,
The
<br class="Apple-interchange-newline"> is added by Chrome. You can reproduce the same behavior in an editable IFRAME element as the attached one. Here is a video demonstrating my test:
http://screencast.com/t/MbUTSmecj7r. If you would like you can attach to the
OnClientPasteHtml event of RadEditor, check for the Paste command and strip this tag.
I also found that this behavior does not exist in an editable DIV. You can set the content area as an editable DIV by setting ContentAreaMode="Div".
By default, Internet Explorer wraps the content inside a paragraph tag - this is the default root <p> tag. If this tag is missing the browser automatically adds it. We got many request however to change this behavior, because it was 'tricking" the validators to believe that there is content in the editor. Secondly it was spoiling the layout of page because the content loaded in the editor without the paragraph would be returned surrounded by a paragraph. That's why we decided to change this by implementing
the FixEnclosingP content filter which removes this root paragraph in Internet Explorer. If you need this paragraph tag then just disable this filter using the
DisableFilter server method of RadEditor or the
ContentFilters property, e.g.
RadEditor1.DisableFilter(EditorFilters.FixEnclosingP);
Best 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