mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fall back to default content style if the configured style does not exist
This commit is contained in:
parent
46ec31fc4b
commit
e262836d57
1 changed files with 4 additions and 1 deletions
|
|
@ -234,7 +234,10 @@ class editorModel extends editor
|
|||
if(!$option->allow_fileupload) $allow_fileupload = false;
|
||||
else $allow_fileupload = true;
|
||||
// content_style setting
|
||||
if(!$option->content_style) $option->content_style = 'ckeditor_light';
|
||||
if(!$option->content_style || !file_exists($this->module_path . 'styles/' . $option->content_style))
|
||||
{
|
||||
$option->content_style = 'ckeditor_light';
|
||||
}
|
||||
Context::set('content_style', $option->content_style);
|
||||
Context::set('content_style_path', $this->module_path . 'styles/' . $option->content_style);
|
||||
// Default font setting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue