From f4b8681160110659f5f78b309237de6f43c32537 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 01 Oct 2008 04:29:58 -0400
Subject: [PATCH] - Stop spellchecking when switching to html editor (#1485362)

---
 program/js/editor.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/editor.js b/program/js/editor.js
index ceab021..a9aec62 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -58,12 +58,12 @@
   // do the appropriate conversion
   if (selectedEditor == 'html')
     {
+    rcmail.display_spellcheck_controls(false);
     var composeElement = document.getElementById('compose-body');
     var htmlText = "<pre>" + composeElement.value + "</pre>";
     composeElement.value = htmlText;
     tinyMCE.execCommand('mceAddControl', true, 'compose-body');
     htmlFlag.value = "1";
-    rcmail.display_spellcheck_controls(false);
     }
   else
     {

--
Gitblit v1.9.1