Accessing editor's text in javascript

  •  06-21-2005, 8:38 PM

    Accessing editor's text in javascript

    Does the following work in version4?  I have not been able to get this to work in V4.
     
     
    Re: accessing the editor's text in javascript (ASP version!)
    ReplyQuote
    My apologies!
     
    After a more thorough search, I found exactly the answer I needed in a post from Adam:

    function getHTML() {
     
     //Editor1 is the ID of the Editor
     var editor = document.getElementById("Editor1_editBox");
     alert(editor.innerHTML);

    }

    I didn't know about that "_editBox" part!

    Thanks Adam!
View Complete Thread