Community Server 2.1 (sp3) Script Striper (editor 6.0)

Last post 08-13-2007, 8:45 PM by GOTBUD. 2 replies.
Sort Posts: Previous Next
  •  08-13-2007, 5:55 PM 32427

    Community Server 2.1 (sp3) Script Striper (editor 6.0)

    Do I follow the same theory with adding this line of code to the community server web.config file to stop it from stripping the script in a post?   <CE:Editor id="Editor1" EnableStripScriptTags="false" runat="server" ></CE:Editor> If so, where abouts does it go in the web.config file?
     
    If not can you help me out with a solution to this like the file name and line numbers I need to change to stop this error:
    <!-- Inject Script Filtered -->
     
    Thanks, Jay
  •  08-13-2007, 6:48 PM 32428 in reply to 32427

    Re: Community Server 2.1 (sp3) Script Striper (editor 6.0)

    Jay,
     
    Step 1. Open Themes\default\Skins\skin-Editor.Standard.ascx and Themes\default\Skins\skin-Editor.Enhanced.ascx.
     
    Change:
     
    <CE:CE4CS id="Editor" runat="server" ></CE:CE4CS>
     
    to:
     
    <CE:CE4CS id="Editor" EnableStripScriptTags="false" runat="server" ></CE:CE4CS>
     
    Step 2.
     
    Community server has the built-in function to remove the JavaScript by default.
     
    You have to configure your community server to allow the user post JavaScript.
     
    1. Open src\Components\Components\Transforms.cs
     
    2. Find the following code:
     
    formattedPost = HtmlScrubber.Clean(formattedPost,false,true);
     
    And change it to:

    formattedPost = HtmlScrubber.Clean(formattedPost,false,false);


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-13-2007, 8:45 PM 32432 in reply to 32428

    Re: Community Server 2.1 (sp3) Script Striper (editor 6.0)

    Thanks Adam for the very fast reply. Worked like a charm...
     
    Is there a better spot on the forum to move this to as it may help other community server users? The link for this forum is kinda hard to get to and after going threw the forums for a day or two i haven't seen an answer for this.
     
    Well anyway thanks again for the fast reply and solution.
     
                       Thanks Jay
     
     
View as RSS news feed in XML