forked from extern/egroupware
Remove other places trying to set default ckEditor toolbar mode - using common preference
This commit is contained in:
parent
85c15e42fd
commit
cbb88e22cb
@ -1339,7 +1339,6 @@ class etemplate_old extends boetemplate
|
|||||||
}
|
}
|
||||||
if (!$readonly)
|
if (!$readonly)
|
||||||
{
|
{
|
||||||
$mode = $mode ? $mode : 'simple';
|
|
||||||
$height = $height ? $height : '400px';
|
$height = $height ? $height : '400px';
|
||||||
$width = $width ? $width : '100%';
|
$width = $width ? $width : '100%';
|
||||||
$fckoptions = array(
|
$fckoptions = array(
|
||||||
|
@ -326,7 +326,7 @@ class egw_ckeditor_config
|
|||||||
* @param boolean $expanded_toolbar specifies whether the ckeditor should start with an expanded toolbar or not
|
* @param boolean $expanded_toolbar specifies whether the ckeditor should start with an expanded toolbar or not
|
||||||
* @param string $start_path specifies
|
* @param string $start_path specifies
|
||||||
*/
|
*/
|
||||||
public static function get_ckeditor_config($mode = 'simple', $height = 400, $expanded_toolbar = true, $start_path = '')
|
public static function get_ckeditor_config($mode = '', $height = 400, $expanded_toolbar = true, $start_path = '')
|
||||||
{
|
{
|
||||||
return json_encode(self::get_ckeditor_config_array($mode, $height, $expanded_toolbar, $start_path));
|
return json_encode(self::get_ckeditor_config_array($mode, $height, $expanded_toolbar, $start_path));
|
||||||
}
|
}
|
||||||
|
@ -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 : $GLOBALS['egw_info']['user']['preferences']['common']['rte_features']), array('toolbar_expanded' =>'true'), '400px', '100%', $base_href);
|
return self::fckEditor($name, $content, $style, array('toolbar_expanded' =>'true'), '400px', '100%', $base_href);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user