Re: Context Menu

  •  05-17-2010, 2:13 AM

    Re: Context Menu

    Hi CAP,
     
    Add a new delete option into context menu,it can be use even the tag ContentEditable  set to false.
     
    1. <%@ Page Language="C#" ValidateRequest="false" %>   
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    4. <html>   
    5. <head>   
    6. </head>   
    7. <body>   
    8.     <form id="Form1" runat="server">   
    9.         <CE:Editor ID="Editor1" runat="server">   
    10.         </CE:Editor>   
    11.     </form>   
    12. </body>   
    13. </html>   
    14.   
    15. <script>   
    16.    function CuteEditor_AddMainMenuItems(menuitem)   
    17. {   
    18.     menuitem.AddMenuItem(1,"Delete","delete.gif",DefaultMenuHandler);   
    19. }   
    20. function DefaultMenuHandler(menuitem)   
    21. {   
    22.   menuitem.editor.ExecCommand("Delete")   
    23. }   
    24.   
    25. </script>  

    Hide the default delete menu
     
    1. Open "CuteSoft_Client\CuteEditor\Configuration\ContextMenuMode\Default.config"
     
    2. Find section below and delete it
     
     <ref name="Delete" />
     
    Regards,
     
    ken
View Complete Thread