Re: Enable Javascript Execution in Preview

  •  01-31-2008, 1:44 AM

    Re: Enable Javascript Execution in Preview

    warnickr,
     
    1. I just checked the code. The JavaScript execution is the preview dialog is also disabled.
     
    2. If you do need this funtion, it's better to create the custom dialog (Demo: http://phphtmledit.com/custombuttons-popup.php). When the dialog loads, call the following JavaScript API:
     
    getHTML()
    This method is used for retrieving the content of CuteEditor as HTML.
    Example:

    // get the cute editor instance
    var editor1 = document.getElementById('CE_Editor1_ID);

    // retrieving the content of Cute Editor as HTML
    var content = editor1.getHTML();
    alert(content );

     
    3.  <security name="EnableStripScriptTags">false</security>

    EnableStripScriptTags is not a security item. Please use the following method to set this property.
     
     

    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->FilesPath="CuteEditor_Files";
             $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 Complete Thread