Re: CuteEditor v5 .Net and ajax

  •  05-30-2006, 2:36 PM

    Re: CuteEditor v5 .Net and ajax

    Add the oncommand attribute to the CE:Editor control declaration.  In this case oncommand="HandleEditorCommand(this)"
     
    function HandleEditorCommand( editor)
    {
       if(event.command=='PostBack' && event.commandValue=='Save')
       {
          GetEditorHTML(editor);
          event.returnValue = false;
       }
    }
     
    function GetEditorHTML(editor)
    {
       //var editor = document.getElementById('CE_Editor1_ID');
       var doc = editor.GetDocument();
       alert(doc.body.innerHTML);
    }
     
    function SetEditorHTML()
    {
       var editor = document.getElementById('CE_Editor1_ID');
       var doc = editor.GetDocument();
       doc.body.innerHTML = "some html string";
    }
View Complete Thread