Re: ASP Custom Button

  •  06-24-2009, 10:27 AM

    Re: ASP Custom Button

    JasonL,
     
    Please add the following code to the bottom of your page:
     
    1. <script language="JavaScript" type="text/javascript" >   
    2.                         var editor1=document.getElementById("<%= editor.ClientID %>");   
    3.                            
    4.                         function CuteEditor_OnCommand(editor,command,ui,value)   
    5.                         {   
    6.                             //handle the command by yourself   
    7.                             if(command=="MyCmd")   
    8.                             {   
    9.                              //   editor.ExecCommand("InsertTable");   
    10.                                 editor1.PasteHTML("Hello World");   
    11.                                 return true;   
    12.                             }   
    13.                         }   
    14.                     </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