From cf657cb5ad369457c6824f7ecd90849f86433042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gordo=20Romero?= Date: Thu, 20 Dec 2007 06:12:09 +0000 Subject: [PATCH] Adding new preferences to fckeditor: - Enter behaviour (p, br, ..) - Spelcheck language - Skyn --- preferences/inc/hook_settings.inc.php | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/preferences/inc/hook_settings.inc.php b/preferences/inc/hook_settings.inc.php index 261b32053e..461b41a7d9 100755 --- a/preferences/inc/hook_settings.inc.php +++ b/preferences/inc/hook_settings.inc.php @@ -73,6 +73,18 @@ '24' => lang('24 hour') ); + $html_enter_mode = array( + 'p' => lang('p: Paragraph'), + 'div' => lang('div'), + 'br' => lang('br') + ); + + $rich_text_editor_skins = array( + 'default' => lang ('Default theme'), + 'office2003' => lang ('Office 2003 theme'), + 'silver' => lang ('Silver theme') + ); + $langs = $GLOBALS['egw']->translation->get_installed_langs(); $user_apps = array(); @@ -201,6 +213,33 @@ 'xmlrpc' => True, 'admin' => False ), + 'spellchecker_lang' => array( + 'type' => 'select', + 'label' => 'Spellchecker language', + 'name' => 'spellchecker_lang', + 'values' => $langs, + 'help' => 'Select the language of the spellchecker integrated into the rich text editor.', + 'xmlrpc' => True, + 'admin' => False + ), + 'rte_enter_mode' => array( + 'type' => 'select', + 'label' => 'Rich text editor enter mode', + 'name' => 'rte_enter_mode', + 'values' => $html_enter_mode, + 'help' => 'Select how the rich text editor will generate the enter (linebreak) tag.', + 'xmlrpc' => True, + 'admin' => False + ), + 'rte_skin' => array( + 'type' => 'select', + 'label' => 'Rich text editor theme', + 'name' => 'rte_skin', + 'values' => $rich_text_editor_skins, + 'help' => 'Select the theme (visualization) of the rich text editor.', + 'xmlrpc' => True, + 'admin' => False + ), 'show_currentusers' => array( 'type' => 'check', 'label' => 'Show number of current users',