From 53783121c737cc03c01870d184126f032d82d718 Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Thu, 2 Sep 1999 01:26:34 +0000 Subject: [PATCH] Hide HTML toolbar when compose in plain text mode, fix bug 9512 git-svn-id: svn://10.0.0.236/trunk@45611 18797224-902f-48f8-a5cc-f745e15eee43 --- .../mailnews/compose/resources/content/MsgComposeCommands.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js index 6e3fdcddbd6..f7b79963f75 100644 --- a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js +++ b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js @@ -128,7 +128,7 @@ function ComposeStartup() // fill in Recipient type combobox FillRecipientTypeCombobox(); - + if (msgComposeService) { msgCompose = msgComposeService.InitCompose(window, args.originalMsg, args.type, args.format, args.fieldsAddr); @@ -159,6 +159,9 @@ function ComposeStartup() } else { + //Remove HTML toolbar as we are editing in plain text mode + document.getElementById("FormatToolbar").setAttribute("hidden", true); + window.editorShell.SetEditorType("text"); try {