rem: DisableItem(removeLinksId, isCollapsed && !window.editorShell.GetElementOrParentByTagName("href", null)); 
add: SetElementEnabled(linkItem, !isCollapsed || window.editorShell.GetElementOrParentByTagName("href", null)); 
context: function InitRemoveStylesMenuitems(removeStylesId, removeLinksId, removeNamedAnchorsId){  // Change wording of menuitems depending on selection  var stylesItem = document.getElementById(removeStylesId);  var linkItem = document.getElementById(removeLinksId);  var namedAnchorsItem = document.getElementById(removeNamedAnchorsId);  var isCollapsed = editorShell.editorSelection.isCollapsed;  if (stylesItem)  {    stylesItem.setAttribute("label", isCollapsed ? GetString("StopTextStyles") : GetString("RemoveTextStyles"));    stylesItem.setAttribute("accesskey", GetString("RemoveTextStylesAccesskey"));  }  if (linkItem)  {    linkItem.setAttribute("label", isCollapsed ? GetString("StopLinks") : GetString("RemoveLinks"));    linkItem.setAttribute("accesskey", GetString("RemoveLinksAccesskey"));    // Note: disabling text style is a pain since there are so many - forget it!    // Disable if not in a link, but always allow "Remove"    //  if selection isn't collapsed since we only look at anchor node    DisableItem(removeLinksId, isCollapsed && !window.editorShell.GetElementOrParentByTagName("href", null));  }  if (namedAnchorsItem)  {    // Disable if selection is collapsed    DisableItem(removeNamedAnchorsId, isCollapsed);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/85108ceb1fdf51900fea533466ed6d5bbf55026a/editor.js/buggy/editor/ui/composer/content/editor.js