ckeditor: define the default skin when constant don't exist.

This commit is contained in:
aspangaro 2015-09-10 06:58:20 +02:00
parent a6701aeb69
commit b1b7966c88

View File

@ -168,8 +168,11 @@ class DolEditor
{
if (! defined('REQUIRE_CKEDITOR')) define('REQUIRE_CKEDITOR','1');
//$skin='kama';
$skin = $conf->global->FCKEDITOR_SKIN; // default with ckeditor 4 : moono
if (empty($conf->global->FCKEDITOR_SKIN)) {
$skin = monoo; // default with ckeditor 4 : moono
} else {
$skin = $conf->global->FCKEDITOR_SKIN;
}
$htmlencode_force=preg_match('/_encoded$/',$this->toolbarname)?'true':'false';