rem: if (namedAnchorsItem) {  DisableItem(removeNamedAnchorsId, isCollapsed); } 
add:  SetElementEnabledById(removeNamedAnchorsId, !isCollapsed); 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/60d424d184887bbc2506f5e2b23af1b95c0d3262/editor.js/clean/editor/ui/composer/content/editor.js