rem: var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; var cell = htmlEditor.getElementOrParentByTagName("td", null); 
add: if (!gIsHTMLEditor) return;  var cell = gEditor.getElementOrParentByTagName("td", null); 
context: function EditorTableCellProperties(){  var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor);  if (!htmlEditor)    return;  var cell = htmlEditor.getElementOrParentByTagName("td", null);  if (cell) {    // Start Table Properties dialog on the "Cell" panel    window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "", "CellPanel");    gContentWindow.focus();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/160100a09b4b930d5b308fda04a1e21843697414/editor.js/buggy/editor/ui/composer/content/editor.js