randomly removing javascript and inline style

Last post 01-18-2007, 7:27 AM by AndyFel. 2 replies.
Sort Posts: Previous Next
  •  01-17-2007, 10:58 AM 25855

    randomly removing javascript and inline style

    Hi
     
    I have a problem when sometimes the page contains javascript and/or inline styles it is deleted when saving.
     
    The page is fine but all javascript and inline style bits are gone, its very intermittent....
    I have never been able to recreate it myself but some of our editors have lost work when saving.
     
    Do you have any ideas why this may be?
    Have you had any other occurances of randomly deleting code?
     
    Thanks
    Andy
  •  01-17-2007, 11:11 AM 25858 in reply to 25855

    Re: randomly removing javascript and inline style

    Andy,
     
    Editor.EnableStripScriptTags Property
    Specifies whether to remove inject script before write the string into the db. When this property is set to true (the default) Cute Editor strips all script elements and script contents from the html.
     
    This property can only be set in the code.
     
    <CE:Editor id="Editor1" runat="server" EnableStripScriptTags="false"></CE:Editor>

    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

  •  01-18-2007, 7:27 AM 25907 in reply to 25858

    Re: randomly removing javascript and inline style

    Hi Adam

    I have set the below, (i should have pasted this before sorry). My problem is that most of the time its fine, but sometimes the editor decides to remove the script and styles on a whim! I have never managed to do this myself, but a couple of reliable editors have had this happen to them.

    I have checked the code for any other reference to  EnableStripScriptTags and the below is the only reference.

    So back to my original problem, I have set the below so do you have any idea why sometimes it strips code and other times it does as it should i.e. leave it alone??

    Thanks
    Andy

    <
    CE:Editor ID="Editor1" runat="server" AllowEditServerSideCode="false" AutoConfigure="simple" DisableAutoFormatting="true" EnableContextMenu="false" EnableStripScriptTags="False" RemoveServerNamesFromUrl="True" RemoveTBODYTag="True" RenderRichDropDown="True" ShowPreviewMode="False" ThemeType="Office2003" UseRelativeLinks="True" EnableBrowserContextMenu="false" EditCompleteDocument="false" Height="350" Width="95%" EnableAntiSpamEmailEncoder="false" IEClientScriptMode="Normal"></CE:Editor>
View as RSS news feed in XML