From b00d7941c63b30f5c79b8924e8aec79129f245b8 Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Tue, 11 May 1999 19:02:54 +0000 Subject: [PATCH] Fix selection and delete problem with body. Add editor toolbar. git-svn-id: svn://10.0.0.236/trunk@31099 18797224-902f-48f8-a5cc-f745e15eee43 --- .../compose/resources/MsgComposeCommands.js | 27 ++++---- .../ui/compose/resources/msgcompose.xul | 63 +++++++++++++++++-- .../ui/compose/resources/msgcomposebody.html | 3 +- 3 files changed, 75 insertions(+), 18 deletions(-) diff --git a/mozilla/mailnews/ui/compose/resources/MsgComposeCommands.js b/mozilla/mailnews/ui/compose/resources/MsgComposeCommands.js index 0b3051ea17f..899a71ff3df 100644 --- a/mozilla/mailnews/ui/compose/resources/MsgComposeCommands.js +++ b/mozilla/mailnews/ui/compose/resources/MsgComposeCommands.js @@ -20,7 +20,7 @@ function GetArgs() return args; } -function startup() +function ComposeStartup() { dump("Compose: StartUp\n"); var sessionID; @@ -53,12 +53,20 @@ function startup() if (editorAppCore) { dump("initalizing the editor app core\n"); + editorName = appCoreName; //Very important to set this variable used by Editor js // setEditorType MUST be call before setContentWindow +dump("args.editorType.toLowerCase(): " + args.editorType.toLowerCase() + "\n"); if (args.editorType && args.editorType.toLowerCase() == "html") + { editorAppCore.setEditorType("html"); + dump("editor initialized in HTML mode\n"); + } else + { editorAppCore.setEditorType("text"); + dump("editor initialized in PLAIN TEXT mode\n"); + } editorAppCore.setContentWindow(window.frames[0]); editorAppCore.setWebShellWindow(window); editorAppCore.setToolbarWindow(window); @@ -91,19 +99,20 @@ function startup() } } -function finish() +function ComposeExit() { dump("\nPage Unloaded from XUL\n"); - if (composeAppCore) - { -// dump("\nClosing compose app core\n"); -// composeAppCore.exit(); - } if (editorAppCore) { dump("\nClosing editor app core\n"); editorAppCore.exit(); } + if (composeAppCore) + { + dump("\nClosing compose app core\n"); +// composeAppCore.exit(); +dump("composeAppCore.exit() not yet implemented!\n"); + } } function SetDocumentCharacterSet(aCharset) @@ -142,7 +151,3 @@ function MessageSent() window.close(); // <-- doesn't work yet! } - -function ComposeExit() -{ -} diff --git a/mozilla/mailnews/ui/compose/resources/msgcompose.xul b/mozilla/mailnews/ui/compose/resources/msgcompose.xul index 5f208cee44b..2b2e3a060cf 100644 --- a/mozilla/mailnews/ui/compose/resources/msgcompose.xul +++ b/mozilla/mailnews/ui/compose/resources/msgcompose.xul @@ -80,16 +80,22 @@ - - + + + + + + + + + - @@ -204,10 +210,55 @@ + + + + + + + Normal + Heading 1 + Heading 2 + Heading 3 + Heading 4 + Heading 5 + Heading 6 + Address + List Item + Definition Term + Definition Description + + + + + + -2... + -1... + 0... + +1... + +2... + +3... + +4... + + + + + + + + + + + + + + + + - + diff --git a/mozilla/mailnews/ui/compose/resources/msgcomposebody.html b/mozilla/mailnews/ui/compose/resources/msgcomposebody.html index ca6b06b3880..9c576026e44 100644 --- a/mozilla/mailnews/ui/compose/resources/msgcomposebody.html +++ b/mozilla/mailnews/ui/compose/resources/msgcomposebody.html @@ -2,8 +2,9 @@ + +

--This message was sent by Messenger 5.0 -