mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
Use preference for ckEditor features by default
This commit is contained in:
parent
b67e2533b7
commit
85c15e42fd
@ -304,8 +304,10 @@ class egw_ckeditor_config
|
|||||||
/**
|
/**
|
||||||
* @see get_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();
|
$config = array();
|
||||||
$spellchecker_button = null;
|
$spellchecker_button = null;
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ class html
|
|||||||
{
|
{
|
||||||
return self::textarea($name,$content,'style="'.$style.'"');
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user