mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix type error when editor add/remove plugins variable contains an empty string
This commit is contained in:
parent
e57c6c5c25
commit
24a6f0e615
2 changed files with 5 additions and 5 deletions
|
|
@ -13,8 +13,8 @@ $ckconfig->focus = $editor_focus ?? false;
|
|||
$ckconfig->ios_patch = (bool)preg_match('/i(Phone|Pad|Pod)/', $_SERVER['HTTP_USER_AGENT'] ?? '');
|
||||
|
||||
// Plugin configuration
|
||||
$ckconfig->add_plugins = $editor_additional_plugins ?? [];
|
||||
$ckconfig->remove_plugins = $editor_remove_plugins ?? [];
|
||||
$ckconfig->add_plugins = $editor_additional_plugins ?: [];
|
||||
$ckconfig->remove_plugins = $editor_remove_plugins ?: [];
|
||||
if (!in_array('clipboard', $ckconfig->remove_plugins)) {
|
||||
$ckconfig->add_plugins[] = 'rx_paste';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue