mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Fixed spellchecker handling
This commit is contained in:
parent
23a87dc2f9
commit
5cd16d7c88
@ -179,6 +179,7 @@ class egw_ckeditor_config
|
|||||||
{
|
{
|
||||||
$spellchecker_button = 'SpellCheck';
|
$spellchecker_button = 'SpellCheck';
|
||||||
$config['extraPlugins'] = "aspell";
|
$config['extraPlugins'] = "aspell";
|
||||||
|
$config['scayt_autoStartup'] = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -201,7 +202,7 @@ class egw_ckeditor_config
|
|||||||
$config['toolbar'][] = array('Source','DocProps','-','Save','NewPage','Preview','-','Templates');
|
$config['toolbar'][] = array('Source','DocProps','-','Save','NewPage','Preview','-','Templates');
|
||||||
$config['toolbar'][] = array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print');
|
$config['toolbar'][] = array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print');
|
||||||
if ($spellchecker_button)
|
if ($spellchecker_button)
|
||||||
$config['toolbar'][count($config['toolbar'])][] = $spellchecker_button;
|
$config['toolbar'][count($config['toolbar']) - 1][] = $spellchecker_button;
|
||||||
$config['toolbar'][] = array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat');
|
$config['toolbar'][] = array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat');
|
||||||
|
|
||||||
$config['toolbar'][] = '/';
|
$config['toolbar'][] = '/';
|
||||||
@ -230,9 +231,9 @@ class egw_ckeditor_config
|
|||||||
$config['toolbar'][] = array('Link','Unlink','Anchor');
|
$config['toolbar'][] = array('Link','Unlink','Anchor');
|
||||||
$config['toolbar'][] = array('Find', 'Replace');
|
$config['toolbar'][] = array('Find', 'Replace');
|
||||||
if ($spellchecker_button)
|
if ($spellchecker_button)
|
||||||
$this['toolbar'][] = array('Maximize', $spellchecker_button, 'Image', 'Table');
|
$config['toolbar'][] = array('Maximize', $spellchecker_button, 'Image', 'Table');
|
||||||
else
|
else
|
||||||
$this['toolbar'][] = array('Maximize', 'Image', 'Table');
|
$config['toolbar'][] = array('Maximize', 'Image', 'Table');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user