forked from extern/egroupware
Added default skins and added code which converts old ckeditor skins to new ones
This commit is contained in:
parent
579cf86bbc
commit
8973b4c9b5
@ -645,9 +645,25 @@ class html
|
|||||||
{
|
{
|
||||||
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
|
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
|
||||||
|
|
||||||
//Check whether the skin actually exists
|
//Convert old fckeditor skin names to new ones
|
||||||
if (file_exists($basePath.'skins/'.$skin) || file_exists($skin))
|
switch ($skin)
|
||||||
$oCKeditor->config['skin'] = $skin;
|
{
|
||||||
|
case 'silver':
|
||||||
|
$skin = "v2";
|
||||||
|
break;
|
||||||
|
case 'default':
|
||||||
|
$skin = "kama";
|
||||||
|
break;
|
||||||
|
case 'office2003':
|
||||||
|
$skin = "office2003";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Check whether the skin actually exists, if not, switch to a default
|
||||||
|
if (!(file_exists($basePath.'skins/'.$skin) || file_exists($skin)))
|
||||||
|
$skin = "office2003";
|
||||||
|
|
||||||
|
$oCKeditor->config['skin'] = $skin;
|
||||||
}
|
}
|
||||||
|
|
||||||
//$oCKeditor->config['spellchecker'] = 'SpellCheck';
|
//$oCKeditor->config['spellchecker'] = 'SpellCheck';
|
||||||
|
Loading…
Reference in New Issue
Block a user