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

RadEditor removing quotes from div id="xyz"

3 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jason B
Top achievements
Rank 1
Jason B asked on 23 Apr 2010, 02:33 PM
RadEditor is removing quotes from div id="xyz".  Enclosing the string within CDATA tags has no effect. 

Steps to reproduce:
1. Use RadEditor on a .NET page to select the content of a database row
2. Insert <div id="xyz"></div> into RadEditor
3. Save changes to db
4. Look at what was saved to the db ..... it saved <div id=xyz></div> .... which browsers detect as a syntax error

How to fix?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Apr 2010, 03:12 PM
Hi Jason,

I was unable to reproduce this problem using the live demos of RadEditor.

Please, make sure that the ConvertToXhtml filter is turned on, e.g.

RadEditor1.EnableFilter(EditorFilters.ConvertToXhtml);

You can find more information in this article: Content Filters.

Best regards,
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.
0
Jason B
Top achievements
Rank 1
answered on 23 Apr 2010, 09:13 PM
I found out we are using version 1.0.  Maybe its time to upgrade to the one used here :)
0
Rumen Jekov
Top achievements
Rank 1
answered on 24 Apr 2010, 09:25 PM
Hi,

If you use the Classic ASP.NET version of RadEditor, you can fix the problem by setting the ConvertToXhtml property to true.

Your idea to upgrade is also better, because the Ajax based editor is much much better than it predecessor:
- it loads very very faster
- has multiple new features
- offers multiple bug fixes
- supports all latest versions of the IE, Firefox, Chrome, Safari and Opera
- the development of the classic editor is discontinued in favor of RadEditor for ASP.NET AJAX as well.

Best regards,
Rumen
Tags
Editor
Asked by
Jason B
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jason B
Top achievements
Rank 1
Rumen Jekov
Top achievements
Rank 1
Share this question
or