mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fixed ckeditor wont start with NOT expanded toolbar
This commit is contained in:
parent
c1bd68281c
commit
1dd3ad5e0a
@ -106,7 +106,7 @@ class xul_io
|
|||||||
'size' => 'image,ro_image'
|
'size' => 'image,ro_image'
|
||||||
),
|
),
|
||||||
'htmlarea' => array(
|
'htmlarea' => array(
|
||||||
'size' => 'mode,height,width,toolbar,base_href',
|
'size' => 'mode,height,width,expand_toolbar,base_href',
|
||||||
),
|
),
|
||||||
'nextmatch' => array(
|
'nextmatch' => array(
|
||||||
'size' => 'template,hide_header,header_left,header_right',
|
'size' => 'template,hide_header,header_left,header_right',
|
||||||
|
@ -48,7 +48,7 @@ var et2_htmlarea = et2_inputWidget.extend(
|
|||||||
'expand_toolbar': {
|
'expand_toolbar': {
|
||||||
'name': 'Expand Toolbar',
|
'name': 'Expand Toolbar',
|
||||||
'default': true,
|
'default': true,
|
||||||
'type':'any',
|
'type':'boolean',
|
||||||
'description': 'Have the toolbar expanded (visible)'
|
'description': 'Have the toolbar expanded (visible)'
|
||||||
},
|
},
|
||||||
'base_href': {
|
'base_href': {
|
||||||
|
@ -224,7 +224,8 @@ class egw_ckeditor_config
|
|||||||
$config['removePlugins'] = 'elementspath';
|
$config['removePlugins'] = 'elementspath';
|
||||||
|
|
||||||
$config['toolbarCanCollapse'] = true;
|
$config['toolbarCanCollapse'] = true;
|
||||||
$config['toolbarStartupExpanded'] = $expanded_toolbar;
|
$config['toolbarStartupExpanded'] = is_bool($expanded_toolbar) ? $expanded_toolbar :
|
||||||
|
($expanded_toolbar === 'false' ? false : (boolean)$expanded_toolbar);
|
||||||
|
|
||||||
$config['filebrowserBrowseUrl'] = self::get_filebrowserBrowseUrl($start_path);
|
$config['filebrowserBrowseUrl'] = self::get_filebrowserBrowseUrl($start_path);
|
||||||
$config['filebrowserWindowHeight'] = 640;
|
$config['filebrowserWindowHeight'] = 640;
|
||||||
@ -377,7 +378,7 @@ class egw_ckeditor_config
|
|||||||
self::add_default_options($config, $height, $expanded_toolbar, $start_path);
|
self::add_default_options($config, $height, $expanded_toolbar, $start_path);
|
||||||
self::add_spellchecker_options($config, $spellchecker_button, $scayt_button);
|
self::add_spellchecker_options($config, $spellchecker_button, $scayt_button);
|
||||||
self::add_toolbar_options($config, $mode, $spellchecker_button, $scayt_button);
|
self::add_toolbar_options($config, $mode, $spellchecker_button, $scayt_button);
|
||||||
|
//error_log(__METHOD__."('$mode', $height, ".array2string($expanded_toolbar).") returning ".array2string($config));
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user