improved skin control, if skin is not chosen by user/default

This commit is contained in:
Klaus Leithoff 2010-05-27 10:06:40 +00:00
parent 8973b4c9b5
commit bc2f709a4d

View File

@ -641,31 +641,29 @@ class html
} }
} }
if (isset($GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'])) $skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
//Convert old fckeditor skin names to new ones
switch ($skin)
{ {
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin']; case 'silver':
$skin = "v2";
//Convert old fckeditor skin names to new ones break;
switch ($skin) case 'default':
{ $skin = "kama";
case 'silver': break;
$skin = "v2"; case 'office2003':
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"; $skin = "office2003";
break;
$oCKeditor->config['skin'] = $skin;
} }
//Check whether the skin actually exists, if not, switch to a default
if (!(file_exists($basePath.'skins/'.$skin) || file_exists($skin) || !empty($skin)))
$skin = "office2003";
$oCKeditor->config['skin'] = $skin;
//$oCKeditor->config['spellchecker'] = 'SpellCheck'; //$oCKeditor->config['spellchecker'] = 'SpellCheck';
switch($_mode) { switch($_mode) {