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

@ -37,7 +37,7 @@ class editorAdminView extends editor
// Use default config for missing values.
foreach ($this->default_editor_config as $key => $val)
{
if (!$editor_config->$key)
if (!isset($editor_config->$key))
{
$editor_config->$key = $val;
}

View file

@ -52,7 +52,7 @@ class editor extends ModuleObject
'additional_css' => array(),
'additional_mobile_css' => array(),
'additional_plugins' => array(),
'remove_plugins' => array(),
'remove_plugins' => array('liststyle', 'tabletools', 'contextmenu'),
);
/**

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;
}
}