From b1b7966c884ed05a5eb5837b8a161f1c17cfe378 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Thu, 10 Sep 2015 06:58:20 +0200 Subject: [PATCH] ckeditor: define the default skin when constant don't exist. --- htdocs/core/class/doleditor.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php index 27fd1b1ee80..25265745dd8 100644 --- a/htdocs/core/class/doleditor.class.php +++ b/htdocs/core/class/doleditor.class.php @@ -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';