Merge pull request #1546 from kijin/pr/editor-dark-mode

에디터에서 다크모드 자동 감지
This commit is contained in:
Kijin Sung 2021-01-08 11:43:15 +09:00 committed by GitHub
commit cfca3a11fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 126 additions and 22 deletions

View file

@ -203,6 +203,7 @@ class editorModel extends editor
// Set allow html and focus
Context::set('allow_html', ($option->allow_html === false || $option->allow_html === 'N') ? false : true);
Context::set('editor_focus', toBool($option->editor_focus));
Context::set('editor_auto_dark_mode', $option->auto_dark_mode !== 'N');
// Load editor components.
if($option->enable_component)