Preventing CSS links from being stripped does not work when configured in C# code

  •  09-22-2011, 6:25 PM

    Preventing CSS links from being stripped does not work when configured in C# code

    We are attempting to turn off all the content stripping perfromed by the editor with the folling code:
    1. cm_htmlcontent.EnableStripIframeTags = false;  
    2. cm_htmlcontent.EnableStripLinkTagsCodeInjection = false;  
    3. cm_htmlcontent.EnableStripScriptTags = false;  
    4. cm_htmlcontent.EnableStripStyleTagsCodeInjection = false;  
    However stylesheet links such as this one are still being stripped away:
    1. <link rel="stylesheet" href="http://www.whatever.com/whatever.css" />  
     
    It looks like the settings in my C# code are being ignored.
     
    In order to investigate this problem further, I modified my ASPX code to look like this: 
    <CE:Editor id="cm_htmlcontent"
    AutoConfigure="None"
    BreakElement="Br"
    EnableBrowserContextMenu="false"
    EnableContextMenu="true"
    EnableViewState="false"
    FullPage="true"
    EnableStripIframeTags="false"
    EnableStripLinkTagsCodeInjection="false"
    EnableStripScriptTags="false"
    EnableStripStyleTagsCodeInjection="false"
    runat="server" /> 
     
    and it worked! My CSS links are no longer stripped. Is it normal that settings the 4 properties in my C# code does not work?
View Complete Thread