mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1335 support autoinsert option by file type
This commit is contained in:
parent
2802c59889
commit
8d05a674f5
8 changed files with 50 additions and 31 deletions
|
|
@ -148,7 +148,8 @@ class editorModel extends editor
|
|||
Context::set('content_line_height', $option->content_line_height);
|
||||
Context::set('content_paragraph_spacing', $option->content_paragraph_spacing);
|
||||
Context::set('content_word_break', $option->content_word_break);
|
||||
Context::set('editor_autoinsert_image', $option->autoinsert_image);
|
||||
Context::set('editor_autoinsert_types', $option->autoinsert_types ?? ($option->autoinsert_image !== 'none' ? self::$default_editor_config['autoinsert_types'] : []));
|
||||
Context::set('editor_autoinsert_position', $option->autoinsert_position ?? $option->autoinsert_image);
|
||||
Context::set('editor_additional_css', $option->additional_css);
|
||||
Context::set('editor_additional_plugins', $option->additional_plugins);
|
||||
Context::set('editor_remove_plugins', $option->remove_plugins);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue