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

RadEditor is adding too much of extra HTML code

4 Answers 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lakshman
Top achievements
Rank 1
Lakshman asked on 20 Feb 2009, 06:39 PM

We recently upgraded our radeditor from classic version to ASP.Net Ajax version (Version 2008.3 1125) with default content filters. Immediately we started hearing from our customers that the new editor is adding

1. lot of "span" tags and "div" tags where none are required.
2. lot of "Undefinied: ;" style tags.

We looked at the release history of your latest service pack (Version 2008.3 1314) and noticed that Telerik has fixed quite a few issues. So we have decided to upgrade our radcontrols to the latest service pack as soon as possible.

Here is the actual question:

What are the different things we need to do, to make sure the editor is producing so much of this extra code in HTML mode?

Please respond.

Thanks, Lakshman

4 Answers, 1 is accepted

Sort by
0
Lakshman
Top achievements
Rank 1
answered on 20 Feb 2009, 06:42 PM
Corrected my question in the previous post:

What are the different things we need to do, to make sure the editor is NOT producing so much of this extra code in HTML mode?

Thanks, Lakshman
0
Lakshman
Top achievements
Rank 1
answered on 23 Feb 2009, 06:08 PM
We are planning to release your latest SP(Version 2008.3 1314) with our application in couple of days.

Can you please get back to me and let me know if we need to make any other configurational changes to make sure the Editor does not add too many "span" and "div" tags when not required.

Thanks in advance!

Lakshman
0
Rumen
Telerik team
answered on 24 Feb 2009, 10:01 AM
Hello Lakshman,


The ConvertFontToSpan content filter converts the deprecated font tags to compliant span tags and the observed behavior is most likely due to this filter. If you would like you can disable it by setting:

RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertFontToSpan);

I am not aware of the too many DIV tags problem and I will need a sample content and step by step instructions how to recreate the problem on our end. Please, also specify under which browser the problem exists.

Best 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.
0
Lakshman
Top achievements
Rank 1
answered on 25 Feb 2009, 09:10 PM
Thanks Rumen but we have decided to keep the ConvertFontToSpan filter :)

Lakshman
Tags
Editor
Asked by
Lakshman
Top achievements
Rank 1
Answers by
Lakshman
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or