calling setHTML set's the content but then disappears...

  •  03-17-2006, 3:08 PM

    calling setHTML set's the content but then disappears...

    When calling setHTML you can see that it set's the content of the text control but then disappears, obviously this is because i am calling the setHTML method before the document / editor has loaded.
     
    So i am looking for something along these lines...
     
    var editor = document.getElementById("...");
    editor.oneditorloaded = function()
    {
        editor.setHTML("...");
    }
     
    is there an event that is called when the editor is ready to be used? i cannot hack it using an onload="setTimeout(...)" that is an ugly and unrealible hack.
     
    Thanks,
     - Justin
View Complete Thread