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

[Solved] Editor re-writes HTML

1 Answer 114 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amey
Top achievements
Rank 1
Amey asked on 06 Nov 2009, 08:26 PM
I've noticed in HTML view if I put in HTML w/ CSS like this:


<div style="border:2px solid #cc0000; width: 180px; font-size: 16px; text-align: center; ">

after I save it becomes something much less readable, such as:

<div style="border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cc0000; border-right-color: #cc0000; border-bottom-color: #cc0000; border-left-color: #cc0000; width: 180px; font-size: 16px; text-align: center; ">

Why is this happening, and how do I prevent it?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Nov 2009, 03:58 PM
Hi Christian,

The content area of RadEditor is an editable IFRAME element which uses the Rich Text Editing engine of the browser where it operates. This is a browser behavior of the rich text editing engine of Internet Explorer and it could not be prevented. You can reproduce the same behavior in a standard editable IFRAME element (test the attached HTML page) as well as in our competitors' editors.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Amey
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or