rem: null != htmlEditor.getElementOrParentByTagName("td", null)); 
add: null != gEditor.getElementOrParentByTagName("td", null)); 
context: function IsInTableCell(){  var flags = gEditor.flags;  var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor);  return (gEditor && htmlEditor &&          !(flags & nsIPlaintextEditor.eEditorReadonlyMask) &&           IsEditingRenderedHTML() &&          null != htmlEditor.getElementOrParentByTagName("td", null));}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/160100a09b4b930d5b308fda04a1e21843697414/editor.js/clean/editor/ui/composer/content/editor.js