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

Can I restrict Markup Tags and Attributes?

1 Answer 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 12 Nov 2009, 09:55 PM

Objective
I would like to expose html editing and paste to my rich editor fields for my application, but I only want specific tags to be published.

Other Editors
For my previous applications, I have been using the Tiny MCE Editor for my rich text editing.  There is a feature in tinymce that allows me to specify which tags and tag attributes are "acceptable" for publishing.

Example
tinyMCE.init({
...
valid_elements : "a[href|target=_blank],strong/b,div[align],br"
});

When a user submits a page, the editor strips out any markup that is not in the approved tag list.

does Telerik have a similary property.

I can do this is dotnet on postback using regex, but I would prefer to have it built into the control.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Nov 2009, 02:58 PM
Hi Jerry,

For the time being RadEditor does not offer the requested feature out-of-the box but you can implement it using the provided code in this forum thread: Any comments/suggestions for this HTML tag-stripping filter?

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