Use preference for ckEditor features by default

This commit is contained in:
Nathan Gray 2012-12-05 19:58:37 +00:00
parent b67e2533b7
commit 85c15e42fd
2 changed files with 4 additions and 2 deletions

View File

@ -304,8 +304,10 @@ class egw_ckeditor_config
/**
* @see get_ckeditor_config
*/
public static function get_ckeditor_config_array($mode = 'simple', $height = 400, $expanded_toolbar = true, $start_path = '')
public static function get_ckeditor_config_array($mode = '', $height = 400, $expanded_toolbar = true, $start_path = '')
{
// If not explicitly set, use preference for toolbar mode
if(!$mode || trim($mode) == '') $mode = $GLOBALS['egw_info']['user']['preferences']['common']['rte_features'];
$config = array();
$spellchecker_button = null;

View File

@ -505,7 +505,7 @@ class html
{
return self::textarea($name,$content,'style="'.$style.'"');
}*/
return self::fckEditor($name, $content, ($style ? $style : 'extended'), array('toolbar_expanded' =>'true'), '400px', '100%', $base_href);
return self::fckEditor($name, $content, ($style ? $style : $GLOBALS['egw_info']['user']['preferences']['common']['rte_features']), array('toolbar_expanded' =>'true'), '400px', '100%', $base_href);
}
/**