summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/js/editor.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 2f58fe0b1..98dde2eca 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -63,9 +63,10 @@ function rcmail_toggle_editor(toggler)
// determine the currently displayed editor
var htmlFlag = document.getElementsByName('_is_html')[0];
- var currentEditor = htmlFlag.value;
+ var isHtml = htmlFlag.value;
- if (selectedEditor == currentEditor)
+ if (((selectedEditor == 'plain') && (isHtml == "0")) ||
+ ((selectedEditor == 'html') && (isHtml == "1")))
{
return;
}