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.editorType = editorType;  editorShell.webShellWindow = window;  editorShell.contentWindow = window._content;  // add a listener to be called when document is really done loading  editorShell.RegisterDocumentStateListener( DocumentStateListener );  // set up our global prefs object  GetPrefsService();   // Startup also used by other editor users, such as Message Composer   EditorSharedStartup();  // Commands specific to the Composer Application window,  //  (i.e., not embeded editors)   //  such as file-related commands, HTML Source editing, Edit Modes...  SetupComposerWindowCommands();  // 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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5986ab59396a3071965154ed4499fa5a734750cd/editor.js/clean/editor/ui/composer/content/editor.js