Re: Adding html dynamically with jQuery

  •  03-31-2011, 12:13 PM

    Re: Adding html dynamically with jQuery

    Dear annoyingmouse,
     
    http://phphtmledit.com/JavaScript-API.php , this example demonstrates how to use javascript API in CuteEditor, you can find the source code of this example in download package.
     
    The following function set the content to CuteEditor.
    function setHTML()
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<?php echo $ClientID;?>');
        
        // Set the editor
        editor1.setHTML(document.getElementById("myTextArea").value);
       }
     
     
    Thank you for asking
     
     
View Complete Thread