add: gEditor = editorShell.editor.QueryInterface(Components.interfaces.nsIHTMLEditor); 
context: function InitEditorShell(){    // get the editor shell from the parent window  editorShell = window.opener.editorShell;  if (editorShell) {    editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);  }  if (!editorShell) {    dump("EditorShell not found!!!\n");    window.close();    return false;  }  // Save as a property of the window so it can be used by child dialogs  window.editorShell = editorShell;  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e03e047dcf2d433cf8a3fd1eef00ed0ebcd6a62c/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js