diff --git a/src/bb-modules/Wysiwyg/Api/Admin.php b/src/bb-modules/Wysiwyg/Api/Admin.php index 23c65e05c..19392efad 100644 --- a/src/bb-modules/Wysiwyg/Api/Admin.php +++ b/src/bb-modules/Wysiwyg/Api/Admin.php @@ -18,7 +18,11 @@ class Admin extends \Api_Abstract { $mod = $this->di['mod']('wysiwyg'); $config = $mod->getConfig(); - return $this->di['array_get']($config, 'editor', 'CKEditor'); + if (empty($this->di['array_get']($config, 'editor', 'CKEditor')) || !(defined($this->di['array_get']($config, 'editor', 'CKEditor')))) { + return 'ckeditor'; + } else { + return $this->di['array_get']($config, 'editor', 'CKEditor'); + } } public function editors() @@ -27,4 +31,4 @@ class Admin extends \Api_Abstract 'ckeditor' => 'CKEditor', ); } -} \ No newline at end of file +}