How to dynamically add text to Editor?

  •  03-22-2007, 2:04 PM

    How to dynamically add text to Editor?

    I would like to dynamically add text to my editor using a button that sits elsewhere on my page (not a button in my editor toolbar). Clicking the button runs some javascript that will insert text. Here is a simplified version of my javascript, which doesn't work:
     
    function setBioText() {
     
     //Editor1 is the ID of the Editor
     var editor = document.getElementById('Editor1');
     editor.innerHTML = 'some text';
    }
     
    Note: I recently upgraded to CuteEditor v5.3 for ASP.
     
    Thanks, Kris.
View Complete Thread