Add custom items to tag context menu

  •  08-06-2010, 8:22 AM

    Add custom items to tag context menu

    Hi,
    1. function CuteEditor_AddTagMenuItems(menuitem,element)   
    2. {   
    3.  //you can see the menu item in the TagList   
    4.  menuitem.AddMenuItem(1,"MyMenuItem1","bold.gif",HandleMyMenuItem);  
    5. menuitem.AddMenuItem(1,"MyMenuItem2","bold2.gif",HandleMyMenuItem);  

    6.     
    7. function HandleMyMenuItem()   
    8.  {   
    9.   alert(element.nodeName);  
    10.    /*****here i want to write some code based on the menuitem clicked, is it possible???********/
    11.  }   

     
    regards
    prasanth

    Prasanth R
View Complete Thread