mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Remove liststyle, tabletools, contextmenu CKEditor plugins by default
This commit is contained in:
parent
f33c8d9fbe
commit
a23323335b
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue