rem: editorShell.SetEditorType(editorType); 
add: editorShell.editorType = editorType; 
context: function EditorStartup(editorType, editorElement){  gIsHTMLEditor = (editorType == "html");  if (gIsHTMLEditor)  {    gSourceContentWindow = document.getElementById("content-source");    gEditModeBar       = document.getElementById("EditModeToolbar");    gEditModeLabel     = document.getElementById("EditModeLabel");     gNormalModeButton  = document.getElementById("NormalModeButton");    gTagModeButton     = document.getElementById("TagModeButton");    gSourceModeButton  = document.getElementById("SourceModeButton");    gPreviewModeButton = document.getElementById("PreviewModeButton");    // XUL elements we use when switching from normal editor to edit source    gContentWindowDeck = document.getElementById("ContentWindowDeck");    gFormatToolbar = document.getElementById("FormatToolbar");  }  // store the editor shell in the window, so that child windows can get to it.  editorShell = editorElement.editorShell;        // this pattern exposes a JS/XBL bug that causes leaks//  editorShell = editorElement.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).editorShell;    editorShell.Init();  editorShell.SetEditorType(editorType);  editorShell.webShellWindow = window;  editorShell.contentWindow = window._content;  // add a listener to be called when document is really done loading  editorShell.RegisterDocumentStateListener( DocumentStateListener );  // Startup also used by other editor users, such as Message Composer   EditorSharedStartup();  // HTML Source editor is not shared with Mail, IM  SetupHTMLSourceController();  // set up our global prefs object  GetPrefsService();   // Get url for editor content and load it.  // the editor gets instantiated by the editor shell when the URL has finished loading.  var url = document.getElementById("args").getAttribute("value");  editorShell.LoadUrl(url);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5eafc0feeb5eafc3a8dec8ecd2e935e7be206733/editor.js/clean/editor/ui/composer/content/editor.js