Remove liststyle, tabletools, contextmenu CKEditor plugins by default

This commit is contained in:
Kijin Sung 2019-07-30 21:05:13 +09:00
parent f33c8d9fbe
commit a23323335b
3 changed files with 4 additions and 4 deletions

View file

@ -68,9 +68,9 @@ class editorModel extends editor
// Apply the default config for missing values.
foreach ($this->default_editor_config as $key => $val)
{
if ($editor_config->default_editor_settings === 'Y' || !$editor_config->$key)
if ($editor_config->default_editor_settings === 'Y' || !isset($editor_config->$key))
{
$editor_config->$key = $editor_default_config->$key ?: $val;
$editor_config->$key = isset($editor_default_config->$key) ? $editor_default_config->$key : $val;
}
}