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,8 +645,24 @@ 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)
{
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['skin'] = $skin;
} }