Support automatic switching to dark skin in CKEditor and SimpleEditor

This commit is contained in:
Kijin Sung 2021-01-06 23:35:51 +09:00
parent c80a80f986
commit e7b49baf13
12 changed files with 41 additions and 4 deletions

View file

@ -231,6 +231,7 @@ class editorAdminController extends editor
$config->content_word_break = $configVars->content_word_break;
$config->content_word_break = in_array($config->content_word_break, array('normal', 'keep-all', 'break-all', 'none')) ? $config->content_word_break : 'normal';
$config->enable_autosave = $configVars->enable_autosave ?: 'Y';
$config->auto_dark_mode = $configVars->auto_dark_mode ?: 'Y';
$config->allow_html = $configVars->allow_html ?: 'Y';
$config->autoinsert_types = array();
foreach ($configVars->autoinsert_types as $type)