<script> tags stripped by javascript call to setHTML

Last post 03-19-2008, 1:51 PM by dcorbett. 4 replies.
Sort Posts: Previous Next
  •  12-06-2006, 11:22 AM 24915

    <script> tags stripped by javascript call to setHTML

    I am using the editor with the property EnableStripScriptTags set to "false" so I can have script in my html being edited.  The script is retained when I switch between Normal and HTML views.  However, in my application there are times when I need to load different text into the editor using the Javascript API call to setHTML.  It seems that this call is stripping the script block too.  Is there some way to prevent that?
    Filed under:
  •  12-06-2006, 9:37 PM 24935 in reply to 24915

    Re: <script> tags stripped by javascript call to setHTML

    mmeltaus,
     
    Are you sure you set EnableStripScriptTags property to false? I can't reproduce this issue. It works OK here. Please note that when you use SetHTML memthod, you need to use it in the Design (normal) view. So CuteEditor will protect your script tags before the browser touch it.
     
     

    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

  •  12-07-2006, 9:14 AM 24964 in reply to 24935

    Re: <script> tags stripped by javascript call to setHTML

    Adam,

    The EnableStripScriptTags is indeed set, however, I was calling setHTML in HTML view.  doing it in Normal view solves the problem -thanks.

  •  03-19-2008, 1:39 PM 38157 in reply to 24964

    Re: <script> tags stripped by javascript call to setHTML

    I am doing so, but I still get <!
  •  03-19-2008, 1:51 PM 38158 in reply to 38157

    Re: <script> tags stripped by javascript call to setHTML

    CuteSoft replaces my <script> block with an HTML comment containing: {cps..3}...  even after adding setTab...
     
    i.e.

            editor.SetActiveTab("Edit");
            editor.setHTML(htmlStr);

    I notice it saves the <script> stuff into CE_T_H...
     
    When does  this get reversed?
View as RSS news feed in XML