Can Code Snippet functionality handle links with Javascript?

Last post 05-18-2010, 2:44 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-14-2010, 9:41 PM 61031

    Can Code Snippet functionality handle links with Javascript?

    Using below in Common.Config but when selecting code snippet javascript is removed.  Any ideas?
     
          <item text="Internal Link">
            <value><![CDATA[<a href="http://www.websiteURL.com/Page-Name.html" onmouseout="window.status=''; return true" onmouseover="window.status='Mouse Over Text'; return true" name="Name Text">Display Text</a> ]]></value>
            <html><![CDATA[Internal Link]]></html>
          </item>
     

     
     

  •  05-18-2010, 2:44 PM 61112 in reply to 61031

    Re: Can Code Snippet functionality handle links with Javascript?

    Please set the following property to false then try again:
     

    Editor.EnableStripScriptTags Property

    Specifies whether to remove inject script before write the string into the db.

     


    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->EnableStripScriptTags=false;
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

     

     


    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

View as RSS news feed in XML