summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-01 11:48:29 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-01 11:48:29 +0200
commit89d6ce68463b92641946551b07ec49b023d56d90 (patch)
tree07aeda01ba9573d8fc1900578b2db24040f7bdaa /program/js/app.js
parent4a1cd8543a089b505495068fbbe53bda4dc3c09c (diff)
Update to TinyMCE 4.x
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 1baedac33..0588eb45b 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3358,8 +3358,11 @@ function rcube_webmail()
{
this.stop_spellchecking();
+ var flag = $('[name="_is_html"]');
+
if (props.mode == 'html') {
this.plain2html($('#'+props.id).val(), props.id);
+ flag.val(1);
tinymce.execCommand('mceAddEditor', false, props.id);
if (this.env.default_font)
@@ -3376,6 +3379,8 @@ function rcube_webmail()
}
this.html2plain(existingHtml, props.id);
}
+
+ flag.val(0);
tinymce.execCommand('mceRemoveEditor', false, props.id);
}