rem: dump("TagName="+element.nodeName+"\n"); if (element.nodeName) 
add: var objStr = ""; menuItem.removeAttribute("disabled"); switch (element.nodeName) 
context: function EditorInitFormatMenu(){  // Set the string for the background color menu item  SetBackColorString("backgroundColorMenu");   var menuItem = document.getElementById("objectProperties");  if (menuItem)  {    var element = GetSelectedElementOrParentCell();    if (element)    {      dump("TagName="+element.nodeName+"\n");      if (element.nodeName)      {        menuItem.removeAttribute("hidden");        menuItem.removeAttribute("disabled");        var objStr;        var menuStr = editorShell.GetString("ObjectProperties");        switch (element.nodeName)        {          case 'IMG':            objStr = editorShell.GetString("Image");            break;          case 'HR':            objStr = editorShell.GetString("HLine");            break;          case 'TABLE':            objStr = editorShell.GetString("Table");            break;          case 'TD':            objStr = editorShell.GetString("TableCell");            break;          case 'A':            if(element.href)              objStr = editorShell.GetString("Link");            else if (element.name)              objStr = editorShell.GetString("NamedAnchor");            break;        }        menuStr = menuStr.replace(/%obj%/,objStr);                menuItem.setAttribute("value", menuStr)      }    } else {      // No element to set properties on - hide menu item      // This works only on Mac and Linux      menuItem.setAttribute("hidden","true");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/15e791eef19a0d23d39a0bd45afbfc082fd4e6bf/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js