diff --git a/mozilla/editor/ui/composer/content/EditorCommands.js b/mozilla/editor/ui/composer/content/EditorCommands.js index e6a0063d087..26a6c61b644 100644 --- a/mozilla/editor/ui/composer/content/EditorCommands.js +++ b/mozilla/editor/ui/composer/content/EditorCommands.js @@ -57,11 +57,11 @@ function EditorOnLoad() { document.getElementById( "args" ).setAttribute( "value", window.arguments[0] ); } // Continue with normal startup. - EditorStartup( 'html' ); + EditorStartup( 'html', document.getElementById("content-frame")); return; } -function EditorStartup(editorType) +function EditorStartup(editorType, editorElement) { dump("Doing Editor Startup...\n"); contentWindow = window.content; @@ -70,9 +70,10 @@ function EditorStartup(editorType) window.addEventListener("load", EditorDocumentLoaded, true, false); dump("Trying to make an Editor Shell through the component manager...\n"); - var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance(); +/* var 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"); @@ -80,9 +81,9 @@ function EditorStartup(editorType) window.close(); return; } - +*/ // store the editor shell in the window, so that child windows can get to it. - window.editorShell = editorShell; + var editorShell = window.editorShell = editorElement.editorShell; editorShell.Init(); editorShell.SetWebShellWindow(window); diff --git a/mozilla/editor/ui/composer/content/TextEditorAppShell.xul b/mozilla/editor/ui/composer/content/TextEditorAppShell.xul index a7278e78647..4fa595017d2 100644 --- a/mozilla/editor/ui/composer/content/TextEditorAppShell.xul +++ b/mozilla/editor/ui/composer/content/TextEditorAppShell.xul @@ -46,7 +46,7 @@ - + @@ -127,7 +127,7 @@ - + diff --git a/mozilla/suite/debugQA/content/debugQATextEditorShell.xul b/mozilla/suite/debugQA/content/debugQATextEditorShell.xul index a7278e78647..4fa595017d2 100644 --- a/mozilla/suite/debugQA/content/debugQATextEditorShell.xul +++ b/mozilla/suite/debugQA/content/debugQATextEditorShell.xul @@ -46,7 +46,7 @@ - + @@ -127,7 +127,7 @@ - +