CuteEditor still strips all script elements though I set EnableStripScriptTags = false

  •  01-05-2007, 2:04 PM

    CuteEditor still strips all script elements though I set EnableStripScriptTags = false

    I use the version 5.3. For my application, the editor still strips all script elements though I set EnableStripScriptTags = false.
     
    My application is an email editor page that allows users to edit 2 versions of email, html and plain text. There is a CuteEditor for html email and a TEXTAREA for plain text email in the same page. I use 2 radio buttons (postback) to switch between the CuteEditor and TEXTAREA, i.e. when Editor1.Visible=false, TextArea1.Visible=true; when Editor1.Visible=true, TextArea1.Visible=false.
     
    I put some Javascript code into the CuteEditor, then switch to TEXTAREA view. After switching back to the CuteEditor view, those Javascript code has been replaced with <!-- Inject Script Filtered -->. I do set EnableStripScriptTags = false. And, if the CuteEditor view postback to itself, the Javascript code is still there. Looks like switching between Editor1.Visible=true and false causes the issue.
     
    Any ideas? Thanks.
     
View Complete Thread