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

Single quote changed to "

1 Answer 189 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mindtrio
Top achievements
Rank 1
Mindtrio asked on 22 Jun 2010, 11:16 PM
I have a solution where the html and document title is fetched by JSON as an object { 'title' : 'my title', 'body' : 'my html here' }. The single quote is returned as encoded \u0027 (') to avoid script errors. The telerik editor is now changing my single quote to " and breaking the html where ' is used? This has happend after an upgrade to latest version. I have tried changing ContentFilters="None" and ContentFilters="ConvertCharactersToEntities" - no change in behavior.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Jun 2010, 12:38 PM
Hello Mindtrio,

The content area of RadEditor is an editable IFRAME element, which uses the Rich Text Editing engine of the browser. If you are able to reproduce the problem with disabled content filters then this is a browser behavior.

Could you please perform the same test with the attached editable IFRAME element in an HTML page and let me know if you are able to reproduce the same problem?

Since the content returned by the Content property of RadEditor is a string, you replace the double quotes with single quotes on the server using the String.Replace method.

Greetings,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Mindtrio
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or