Update Admin.php

This commit is contained in:
Yağızhan authored and GitHub committed 2021-08-10 15:19:15 +00:00
1 parent 0a57a6ccb4
commit acfa5504bd
1 file changed
+6 -2
+6 -2
View File
@@ -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',
);
}
}
}