summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-07 09:35:29 +0000
committeralecpl <alec@alec.pl>2011-12-07 09:35:29 +0000
commit7e263ea2048721482c00db65d4511f00c4c7b1d4 (patch)
tree02ee2a01d613a7f23a8408f656953d3ee5abad41 /program/js/app.js
parent889665f57517cb1182de74568a239a669b22bece (diff)
- Add option to set default font for HTML message (#1484137)
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 d2b44344e..b6c7d1dfd 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3048,6 +3048,11 @@ function rcube_webmail()
this.display_spellcheck_controls(false);
this.plain2html($('#'+props.id).val(), props.id);
tinyMCE.execCommand('mceAddControl', false, props.id);
+
+ if (this.env.default_font)
+ window.setTimeout(function() {
+ $(tinyMCE.get(props.id).getBody()).css('font-family', rcmail.env.default_font);
+ }, 500);
}
else {
var thisMCE = tinyMCE.get(props.id), existingHtml;