Cant get basic SetHTML to work

Last post 09-26-2008, 9:38 PM by splendidbob. 1 replies.
Sort Posts: Previous Next
  •  09-26-2008, 9:48 AM 44333

    Cant get basic SetHTML to work

    Hi, I am trying to use Javascript to set the contents of the editor using:



    <script language="Javascript" type="text/javascript">



    var editor1 = document.getElementById('CE_Editor1_ID');

    editor1.setHTML('Hello World');



    </script>


    Nothing happens, I must be missing something obvious?



    thx

    Bob



  •  09-26-2008, 9:38 PM 44342 in reply to 44333

    Re: Cant get basic SetHTML to work

    ok, ignore this, I have it working.. needed to call stuff from
     
    function CuteEditor_OnInitialized(editor) {
    }
     
    cheers
    Bob
View as RSS news feed in XML