Re: re-map the save button function?

  •  10-08-2009, 12:38 PM

    Re: re-map the save button function?

    That worked great for the most part except I cannot get the "Save" button to respond
    Currently I have my command mapped to the "Bold" button.
    Any thoughts?
     
     
    Code:

       Set editor = New CuteEditor
         
       editor.ID = "Editor1"
       editor.Text = content
       editor.FilesPath = "CuteEditor_Files"
       //editor.AutoConfigure = "Full_noform"
       editor.TemplateItemList = "Save,Separator,Bold,Italic,Underline,Separator,JustifyLeft,JustifyCenter,JustifyRight,Separator,InsertOrderedList,InsertUnorderedList,Separator,Indent,Outdent,Separator,Cut,Copy,Paste,Separator,netspell,Separator,Undo,Redo"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.ThemeType="officexp"
       editor.ShowHtmlMode = false
       editor.EditorOnPaste = "PasteWord"
       editor.Width = "100%"
       editor.Height = "500px"
       editor.MaxTextLength = "3000"
       
       editor.Draw()

    var editor1 = document.getElementById("<%=editor.ClientID%>");

    function CuteEditor_OnCommand(editor,command,ui,value) {
     //handle the command by yourself
     if(command=="Bold") {
      drafted = 0;
      autoDraft();
     }
     //alert(command);
    }

     
View Complete Thread