Re: Editor.customaddons from v5 to v6

  •  06-05-2007, 12:50 PM

    Re: Editor.customaddons from v5 to v6

    Shamsu,
     
    Please Try the following code:
     
     editor.CustomAddons = "<img title=""Using oncommand"" class=""CuteEditorButton"" onmouseover=""CuteEditor_ButtonCommandOver(this)"" onmouseout=""CuteEditor_ButtonCommandOut(this)"" onmousedown=""CuteEditor_ButtonCommandDown(this)"" onmouseup=""CuteEditor_ButtonCommandUp(this)"" ondragstart=""CuteEditor_CancelEvent()"" Command=""MyCmd"" src=""CuteEditor_Files/images/contact.gif"" />"
       

                   <script language="JavaScript" type="text/javascript" >
                      var editor1=document.getElementById("<%= editor.ClientID %>");
                      
                      function CuteEditor_OnCommand(editor,command,ui,value)
                      {
                       //handle the command by yourself
                       if(command=="MyCmd")
                       {
                     //   editor.ExecCommand("InsertTable");
                        editor1.PasteHTML("Hello World");
                        return true;
                       }
                      }
                   </script>


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread