rem: SetElementEnabledById("AdvancedEditButton2", selectedCellCount == 1); 
add: SetElementEnabledById("AdvancedEditButton2", gSelectedCellCount == 1); 
context: function DoCellSelection(){  // Collapse selection into to the focus cell  //  so editor uses that as start cell  selection.collapse(CellElement, 0);  switch (SelectedCellsType)  {    case SELECT_CELL:      editorShell.SelectTableCell();      break    case SELECT_ROW:      editorShell.SelectTableRow();      break;    default:      editorShell.SelectTableColumn();      break;  }  // Get number of cells selected  var tagNameObj = new Object;  var countObj = new Object;  tagNameObj.value = "";  var tableOrCellElement = editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj);  if (tagNameObj.value == "td")    selectedCellCount = countObj.value;  else    selectedCellCount = 0;    // Currently, we can only allow advanced editing on ONE cell element at a time  //   else we ignore CSS, JS, and HTML attributes not already in dialog  SetElementEnabledById("AdvancedEditButton2", selectedCellCount == 1);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/aeb107757eb7fc4a8d99588fa99d2c3d9f86b98b/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js