rem: try {  gEditor.addOverrideStyleSheet(kBaseEditorStyleSheet); } catch (e) {} 
add:  if (IsWebComposer()) {  if (gComposerWindowControllerID != -1) { try { var controller = window.controllers.getControllerById(gComposerWindowControllerID); controller.SetCommandRefCon(gEditor.QueryInterface(Components.interfaces.nsISupports)); } catch (e) {} }   EditorSetDefaultPrefsAndDoctype(); EditorInitToolbars();    UpdateWindowTitle(); BuildRecentMenu();    SetSaveAndPublishUI(GetDocumentUrl());   SetDisplayMode(kDisplayModeNormal); } 
context:   NotifyDocumentCreated: function()  {    gEditor = editorShell.editor;    // do all of our QI'ing here so we don't need to do it elsewhere    DoAllQueryInterfaceOnEditor();    try {      gEditor.QueryInterface(Components.interfaces.nsIEditorMailSupport);    } catch(e) {}    // XXX Temporary: This should be set during startup     //  once we finish transition from nsIEditorShell is to nsIEditorSession    try {      gEditor.contentsMIMEType = gIsHTMLEditor ? kHTMLMimeType : kTextMimeType;    } catch(e) {}    addEditorClickEventListener();    try {      // Add the base sheet for editor cursor etc.      gEditor.addOverrideStyleSheet(kBaseEditorStyleSheet);    } catch (e) {}  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/53953ee69005a4dd6cee2e8213a8514564bdbdd8/editor.js/buggy/editor/ui/composer/content/editor.js