Re: CuteEditor and javascript

  •  09-24-2009, 10:33 PM

    Re: CuteEditor and javascript

    HI BrianG,

    1. I want to load the data automatically via javascript.  The example does that but has a button too.

    This event is invoked immediately after Cute Editor is initialized.

    Example:

    function CuteEditor_OnInitialized(editor)
    {
    editor.setHTML("Hello World");
    }
     

    2. I want to use the Save button to save the data.

    This event is invoked when the command button is clicked.

    Example:

    function CuteEditor_OnCommand(editor,command,ui,value)
     {
         if(command=="PostBack")
            {
                // when user click on the 'Save' button, the following code will execute
               alert("you click on the save button")
            }
    }
     
    Regards,
     
    Ken
View Complete Thread