From 9ca0c9d436ef1d9d288ff80a06dcdbba525dd435 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Sat, 27 May 2000 01:51:31 +0000 Subject: [PATCH] Fix for nsbeta2+ bug 38673 - editor UI elements get disabled if you use a dialog to insert the first element in composer. --- editor/ui/composer/content/editor.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index bfa3dec5b9f1..2ff60f689676 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -101,9 +101,6 @@ function TextEditorOnLoad() function PageIsEmptyAndUntouched() { -dump("Editorshell="+editorShell+"\n"); -dump("DocumentIsEmpty="+editorShell.documentIsEmpty+"\n"); -dump("docWasModified="+docWasModified+"\n"); return (editorShell != null) && (editorShell.documentIsEmpty == true) && (docWasModified == false); } @@ -119,7 +116,7 @@ var DocumentStateListener = // udpate menu items now that we have an editor to play with //dump("Updating 'create' commands\n"); - content.focus(); + window.content.focus(); window.updateCommands("create"); }, @@ -131,9 +128,11 @@ var DocumentStateListener = if (isNowDirty) docWasModified = true; - // hack! Should not need this, but there is some controller bug that this - // works around. + // hack! Should not need this updateCommands, but there is some controller + // bug that this works around. ?? + window.content.focus(); window.updateCommands("create"); + window.updateCommands("save"); } };