From 7e263ea2048721482c00db65d4511f00c4c7b1d4 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 7 Dec 2011 09:35:29 +0000 Subject: - Add option to set default font for HTML message (#1484137) --- program/steps/settings/func.inc | 20 +++++++++++++++++++- program/steps/settings/save_prefs.inc | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'program/steps/settings') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 28da87628..b778afa13 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -481,7 +481,6 @@ function rcmail_user_prefs($current=null) 'sig' => array('name' => Q(rcube_label('signatureoptions'))), ); - // Show checkbox for HTML Editor if (!isset($no_override['htmleditor'])) { $field_id = 'rcmfd_htmleditor'; $select_htmleditor = new html_select(array('name' => '_htmleditor', 'id' => $field_id)); @@ -634,6 +633,25 @@ function rcmail_user_prefs($current=null) ); } + if (!isset($no_override['default_font'])) { + $field_id = 'rcmfd_default_font'; + $fonts = rcube_fontdefs(); + $default_font = $config['default_font'] ? $config['default_font'] : 'Verdana'; + + $select = ''; + + $blocks['main']['options']['default_font'] = array( + 'title' => html::label($field_id, Q(rcube_label('defaultfont'))), + 'content' => $select + ); + } + break; diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index f5f3e36d3..a6388c579 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -86,6 +86,7 @@ switch ($CURR_SECTION) 'top_posting' => !empty($_POST['_top_posting']), 'strip_existing_sig' => isset($_POST['_strip_existing_sig']), 'sig_above' => !empty($_POST['_sig_above']) && !empty($_POST['_top_posting']), + 'default_font' => get_input_value('_default_font', RCUBE_INPUT_POST), ); break; -- cgit v1.2.3