mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add option to control focus on CKEditor
https://www.xetown.com/qna/801549
This commit is contained in:
parent
cb2920bc99
commit
9ba0b1e3e6
4 changed files with 5 additions and 1 deletions
|
|
@ -169,8 +169,9 @@ class editorModel extends editor
|
|||
}
|
||||
Context::set('enable_autosave', $option->enable_autosave);
|
||||
|
||||
// Set allow html
|
||||
// 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));
|
||||
|
||||
// Load editor components.
|
||||
$site_srl = Context::get('site_module_info')->site_srl ?: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue