+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / How to include scripts and script tags in the generic content

How to include scripts and script tags in the generic content

2 posts, 0 answered
  1. eraashishgupta
    eraashishgupta avatar
    50 posts
    Registered:
    26 Nov 2008
    15 Jan 2009
    Link to this post
    Sitefinity is not allowing me to include the script tag inside the generic content.
    Its deleting the script tags i want to inclide script tags to load some script i dont need it on every page so i cant add it to my masterpage or template.
    So is there a way to allow the script tags and scripts to be included in the generic content.
    Thanks

  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    21 Nov 2016
    16 Jan 2009
    Link to this post
    Hello,

    You need to add this properties: ContentFilters="None" and AllowScripts="true" for the RadEditor control. If you want to insert scripts in Generic Content module, the RadEditor control could be found in the template ControlPanelInsert.ascx located in ~\Sitefinity\Admin\ControlTemplates\Generic_Content. So it should look like this:
     <telerik:RadEditor  
                        runat="server"  
                        ID="contentEditor"  
                        ContentFilters="None" 
                        AllowScripts="true" 

    You can refer to the RadEditor documentation for more information.
    Hope this helps.

    Regards,
    Nikolai
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered