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

RadEditor changes content automatically

1 Answer 57 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Heiko Falk
Top achievements
Rank 1
Heiko Falk asked on 02 Oct 2009, 10:33 AM
Hi everyone,

we have the problem, that the RadEditor changes its content automatically when switching between the Design and the HTML view.
If we insert:
<select>
<option value="val" selected="val">val</option>
</select>
into the HTML view and then switching to the Design view and back to the HTML view again, then the RadEditor changed the content to:
<select>
<option value="val" selected="true">val</option>
</select>

We do not want that the editor changes anything the user gives as input. We tried several things including ContentFilters="None", but we did not find a solution.

Thanks in advance for your help. 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Oct 2009, 12:29 PM
Hi Heiko,

The content area of RadEditor is editable IFRAME which uses the Rich Text Editing (RTE) engine of the browser. The observed behavior is due to the RTE engine of Internet Explorer which converts the invalid val value of the selected attribute to the valid selected string. This behavior could be observed in our competitors' editors as well as in an editable IFRAME / DIV elements.

The behavior does not occur in Firefox.

This is a browser behavior of IE and it cannot be avoided using javascript code.

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
Heiko Falk
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or