rem: } else {   menuItem.setAttribute("hidden","true"); 
add: menuStr = menuStr.replace(/%obj%/,objStr); } else {  menuItem.setAttribute("disabled","true");  menuStr = menuStr.replace(/%obj%/,"").replace(/^\s+/, ""); 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/69d11a568c5782113f5aebfe26fc519125ee70e9/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js