Supply 'EditorCleanup()' method for mail composer to use to fix bug 117791, r=brade, sr=dveditz

This commit is contained in:
cmanske%netscape.com 2002-02-07 23:44:32 +00:00
parent 226cf3ceae
commit 431edd5a92

View File

@ -174,6 +174,13 @@ function TextEditorOnLoad()
EditorStartup('text', document.getElementById("content-frame"));
}
// This should be called by all editor users when they close their window
// or other similar "done with editor" actions, like recycling a Mail Composer window.
function EditorCleanup()
{
SwitchInsertCharToAnotherEditorOrClose();
}
function PageIsEmptyAndUntouched()
{
return (editorShell != null) && editorShell.documentIsEmpty &&