add:    ShowMenuItem("createLink_cm", !isInLink);   ShowMenuItem("editLink_cm", isInLink); 
context: function EditorFillContextMenu(event, contextMenuNode){  if ( event.target != contextMenuNode )    return;  goUpdateCommand("cmd_undo");  goUpdateCommand("cmd_redo");  goUpdateCommand("cmd_cut");  goUpdateCommand("cmd_copy");  goUpdateCommand("cmd_paste");  goUpdateCommand("cmd_pasteNoFormatting");  goUpdateCommand("cmd_delete");  goUpdateCommand("cmd_link");  // Setup object property menuitem  var objectName = InitObjectPropertiesMenuitem("objectProperties_cm");  var isInLink = objectName == "href";  // Special case of an image inside a link  if (objectName == "img")  try {    isInLink = GetCurrentEditor().getElementOrParentByTagName("href", GetObjectForProperties());  } catch (e) {}  // Disable "Create Link" if in a link  SetElementEnabledById("createLink_cm", !isInLink);  // Enable "Edit link in new Composer" if in a link  SetElementEnabledById("editLink_cm", isInLink);  InitRemoveStylesMenuitems("removeStylesMenuitem_cm", "removeLinksMenuitem_cm", "removeNamedAnchorsMenuitem_cm");  var inCell = IsInTableCell();  // Set appropriate text for join cells command  InitJoinCellMenuitem("joinTableCells_cm");  // Update enable states for all table commands  goUpdateTableMenuItems(document.getElementById("composerTableMenuItems"));  // Loop through all children to hide disabled items  var children = contextMenuNode.childNodes;  if (children)  {    var count = children.length;    for (var i = 0; i < count; i++)      HideDisabledItem(children.item(i));  }  // Remove separators if all items in immediate group above are hidden  // A bit complicated to account if multiple groups are completely hidden!  var haveUndo =    IsMenuItemShowing("menu_undo_cm") ||    IsMenuItemShowing("menu_redo_cm");  var haveEdit =    IsMenuItemShowing("menu_cut_cm")   ||    IsMenuItemShowing("menu_copy_cm")  ||    IsMenuItemShowing("menu_paste_cm") ||    IsMenuItemShowing("menu_pasteNoFormatting_cm") ||    IsMenuItemShowing("menu_delete_cm");  var haveStyle =    IsMenuItemShowing("removeStylesMenuitem_cm") ||    IsMenuItemShowing("createLink_cm") ||    IsMenuItemShowing("removeLinksMenuitem_cm") ||    IsMenuItemShowing("removeNamedAnchorsMenuitem_cm");  var haveProps =    IsMenuItemShowing("objectProperties_cm");  ShowMenuItem("undoredo-separator", haveUndo && haveEdit);  ShowMenuItem("edit-separator", haveEdit || haveUndo);  // Note: Item "menu_selectAll_cm" and  // following separator are ALWAYS enabled,  // so there will always be 1 separator here  var showStyleSep = haveStyle && (haveProps || inCell);  ShowMenuItem("styles-separator", showStyleSep);  var showPropSep = (haveProps && inCell);  ShowMenuItem("property-separator", showPropSep);  // Remove table submenus if not in table  ShowMenuItem("tableInsertMenu_cm",  inCell);  ShowMenuItem("tableSelectMenu_cm",  inCell);  ShowMenuItem("tableDeleteMenu_cm",  inCell);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad909ba8b158a9bc94a4706662becced8bbb0cdc/EditorContextMenu.js/clean/editor/ui/composer/content/EditorContextMenu.js