Add option to control focus on CKEditor

https://www.xetown.com/qna/801549
This commit is contained in:
Kijin Sung 2017-11-21 15:33:24 +09:00
parent cb2920bc99
commit 9ba0b1e3e6
4 changed files with 5 additions and 1 deletions

View file

@ -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;