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

RadEditor Changes HTML in Firefox

1 Answer 57 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amey
Top achievements
Rank 1
Amey asked on 03 Mar 2009, 09:49 PM
Hello,

I've noticed that the radeditor changes inline css when saving in firefox.

When you create html such as this:

<div style="background:#CCC;">Test</test>

Once you save and view the HTML it winds up looking like this:

<div style="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Test</div>

How do we prevent this from happening?

Thanks







1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Mar 2009, 04:06 PM
Hi Christian ,

The content area of RadEditor is an editable IFRAME which uses the rich text editing engine of the browser. The observed issue is Firefox behavior and you can reproduce it with the attached html page having an editable IFRAME in it.  The behavior is observed too in our competitors' editors.

If you do not like this behavior you can strip the undesired moz attributes when submitting the content by attaching to the editor's OnClientSubmit event property.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Amey
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or