From 34e371d586aa6fb180cb799a541d4fdf57925df4 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 7 Dec 2011 09:35:29 +0000 Subject: - Add option to set default font for HTML message (#1484137) git-svn-id: https://svn.roundcube.net/trunk@5562 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roundcubemail/program/js/app.js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index d2b44344e..b6c7d1dfd 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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; -- cgit v1.2.3