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

CleanAttributesFilter error

1 Answer 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
majsty
Top achievements
Rank 1
majsty asked on 23 Jul 2010, 04:28 AM
In IE8, when I load the following HTML into the editor:

<html><head></head><body><table><tr><td width="*"></td></tr></table></body></html>

I get the following javascript error:

"Error while executing filter CleanAttributesFilter - Error: Invalid argument."

I suspect this is related to the width="*" attribute. When I take this out, the editor loads without showing the message.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Jul 2010, 11:43 AM
Hi Majsty,

Indeed, the problem is due to the asterisk * symbol which is not allowed as a value of the width HTML attribute. If you really need this symbol as a value of the width property and could not avoid using number or percents values then my suggestion is disable the ConvertToXhtml built-in content filter of RadEditor, e.g.

RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml);


Kind 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
Tags
Editor
Asked by
majsty
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or