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

How to disable users from posting code

1 Answer 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Santosh
Top achievements
Rank 1
Santosh asked on 06 Jun 2011, 05:58 AM
Hi,
I am using telerik radeditor, dll version "2010.2.713.35". Right now we have allowed the users to put any content in the editor, but we would like to restrict them from posting any C# or java script code. please let me know how can i achieve this?

Thanks,
Santosh Kumar

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jun 2011, 02:45 PM
Hello Santosh,

The JavaScript script tags and the JS code inside them are automatically stripped by the RadEditor's RemoveScripts content filter, which is enabled by default. If you want to strip C# code, you can write your own custom content filter that recognizes such markup and strip it.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

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