Not able to use Script tags in Rad Telerik HTML editor

2 posts, 0 answers
  1. balaramesh t
    balaramesh t avatar
    1 posts
    Member since:
    Apr 2010

    Posted 22 Jan 2014 Link to this post

    We have used Rad Telerik HTML editor control in our CMS project.  We cant able to add <script> tags using the editor.
    We need to use <script> tags in the CMS content. Can any one please guide us on this?
  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 23 Jan 2014 Link to this post


    You need to make sure the RemoveScripts and EncodeScripts filters are disabled before attempting to add scripts to the content. If you need to preset content with scripts, you should first disable the filters. For example:
    protected void Page_Load(object sender, EventArgs e)
        string initialContent = @"<strong>some bold text</strong><br /><em>some italic text</em>
            <script type=""text/javascript"">
        RadEditor1.Content = initialContent;

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top