rem: editorShell = Components.classes["component: 
add: var editorShell = Components.classes["component: 
context: function EditorStartup(editorType){  dump("Doing Startup...\n");  contentWindow = window.content;  // set up event listeners  window.content.addEventListener("load", EditorDocumentLoaded, true, false);      dump("Trying to make an Editor Shell through the component manager...\n");  editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance();  if (editorShell)    editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);    if (!editorShell)  {    dump("Failed to create editor shell\n");    // 7/12/99 THIS DOESN'T WORK YET!    window.close();    return;  }    // store the editor shell in the window, so that child windows can get to it.  window.editorShell = editorShell;    editorShell.Init();  editorShell.SetWebShellWindow(window);  editorShell.SetToolbarWindow(window)  editorShell.SetEditorType(editorType);  editorShell.SetContentWindow(contentWindow);  // 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);    dump("EditorAppCore windows have been set.\n");  SetupToolbarElements();    // Set focus to the edit window  // This still doesn't work!  // It works after using a toolbar button, however!  contentWindow.focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0956b483258c0a84bcd2e9eddadf85dea757b63a/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js