Added default skins and added code which converts old ckeditor skins to new ones

This commit is contained in:
Andreas Stöckel 2010-05-27 08:04:47 +00:00
parent 579cf86bbc
commit 8973b4c9b5

View File

@ -645,9 +645,25 @@ class html
{
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
//Check whether the skin actually exists
if (file_exists($basePath.'skins/'.$skin) || file_exists($skin))
$oCKeditor->config['skin'] = $skin;
//Convert old fckeditor skin names to new ones
switch ($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';