Re: Chaning the icon image and size of template within cuteditor

  •  01-14-2010, 9:17 PM

    Re: Chaning the icon image and size of template within cuteditor

     
    How to change the toolbar ico of editor.
     
     
    How to open Inserttemplate dialog use another button.
    Try the example below.
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head runat="server">   
    7.     <title>example</title>   
    8. </head>   
    9. <body>   
    10.     <form id="form1" runat="server">   
    11.         <div>   
    12.             <CE:Editor ID="editor1" runat="server">   
    13.             </CE:Editor>   
    14.             <input type="button" value="Open Inserttemplate Dialog" onclick="openDialog()" />   
    15.         </div>   
    16.     </form>   
    17. </body>   
    18. </html>   
    19. <script type="text/javascript">   
    20. function openDialog()   
    21. {   
    22. var editor1=document.getElementById("<%= editor1.ClientID %>");   
    23.   
    24. editor1.ExecCommand("InsertTemplate");   
    25. }   
    26.   
    27. </script>  
    Regards,
     
    Ken
View Complete Thread