mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
에디터 기본 설정을 잘못 처리하는 문제 수정
This commit is contained in:
parent
c93eaf583f
commit
b3baf10915
1 changed files with 41 additions and 13 deletions
|
|
@ -36,6 +36,7 @@ class editorModel extends editor
|
|||
|
||||
if(!is_object($editor_config)) $editor_config = new stdClass();
|
||||
|
||||
if($editor_config->enable_autosave != 'N') $editor_config->enable_autosave = 'Y';
|
||||
if(!is_array($editor_config->enable_html_grant)) $editor_config->enable_html_grant = array();
|
||||
if(!is_array($editor_config->enable_comment_html_grant)) $editor_config->enable_comment_html_grant = array();
|
||||
if(!is_array($editor_config->upload_file_grant)) $editor_config->upload_file_grant = array();
|
||||
|
|
@ -45,20 +46,47 @@ class editorModel extends editor
|
|||
if(!is_array($editor_config->enable_component_grant)) $editor_config->enable_component_grant = array();
|
||||
if(!is_array($editor_config->enable_comment_component_grant)) $editor_config->enable_comment_component_grant= array();
|
||||
|
||||
if($editor_config->enable_autosave!='N') $editor_config->enable_autosave = "Y";
|
||||
if(!$editor_config->editor_height)
|
||||
{
|
||||
$editor_config->editor_height = ($editor_default_config->editor_height) ? $editor_default_config->editor_height : 500;
|
||||
}
|
||||
if(!$editor_config->comment_editor_height)
|
||||
{
|
||||
$editor_config->comment_editor_height = ($editor_default_config->comment_editor_height) ? $editor_default_config->comment_editor_height : 120;
|
||||
}
|
||||
if(!$editor_config->editor_skin)
|
||||
{
|
||||
$editor_config->editor_skin = ($editor_default_config->editor_skin) ? $editor_default_config->editor_skin : 'ckeditor';
|
||||
}
|
||||
if(!$editor_config->comment_editor_skin)
|
||||
{
|
||||
$editor_config->comment_editor_skin = ($editor_default_config->comment_editor_skin) ? $editor_default_config->comment_editor_skin : 'ckeditor';
|
||||
}
|
||||
if(!$editor_config->content_style)
|
||||
{
|
||||
$editor_config->content_style = ($editor_default_config->content_style) ? $editor_default_config->content_style : 'ckeditor_light';
|
||||
}
|
||||
if(!$editor_config->content_font && $editor_default_config->content_font)
|
||||
{
|
||||
$editor_config->content_font = $editor_default_config->content_font;
|
||||
}
|
||||
if(!$editor_config->content_font_size && $editor_default_config->content_font_size)
|
||||
{
|
||||
$editor_config->content_font_size = $editor_default_config->content_font_size;
|
||||
}
|
||||
if(!$editor_config->sel_editor_colorset && $editor_default_config->sel_editor_colorset)
|
||||
{
|
||||
$editor_config->sel_editor_colorset = $editor_default_config->sel_editor_colorset;
|
||||
}
|
||||
if(!$editor_config->sel_comment_editor_colorset && $editor_default_config->sel_comment_editor_colorset)
|
||||
{
|
||||
$editor_config->sel_comment_editor_colorset = $editor_default_config->sel_comment_editor_colorset;
|
||||
}
|
||||
if(!$editor_config->comment_content_style && $editor_default_config->comment_content_style)
|
||||
{
|
||||
$editor_config->comment_content_style = $editor_default_config->comment_content_style;
|
||||
}
|
||||
|
||||
if(!$editor_config->editor_height) if($editor_default_config->editor_height? $editor_config->editor_height = $editor_default_config->editor_height : $editor_config->editor_height = 300);
|
||||
if(!$editor_config->comment_editor_height) if($editor_default_config->comment_editor_height? $editor_config->comment_editor_height = $editor_default_config->comment_editor_height : $editor_config->comment_editor_height = 100);
|
||||
if(!$editor_config->editor_skin) if($editor_default_config->editor_skin? $editor_config->editor_skin = $editor_default_config->editor_skin : $editor_config->editor_skin = 'ckeditor');
|
||||
if(!$editor_config->comment_editor_skin) if($editor_default_config->comment_editor_skin? $editor_config->comment_editor_skin = $editor_default_config->comment_editor_skin : $editor_config->comment_editor_skin = 'ckeditor');
|
||||
if(!$editor_config->content_style) if($editor_default_config->content_style? $editor_config->content_style = $editor_default_config->content_style : $editor_config->content_style = 'ckeditor_light');
|
||||
|
||||
if(!$editor_config->content_font && $editor_default_config->content_font) $editor_config->content_font = $editor_default_config->content_font;
|
||||
if(!$editor_config->content_font_size && $editor_default_config->content_font_size) $editor_config->content_font_size = $editor_default_config->content_font_size;
|
||||
|
||||
if(!$editor_config->sel_editor_colorset && $editor_default_config->sel_editor_colorset) $editor_config->sel_editor_colorset = $editor_default_config->sel_editor_colorset;
|
||||
if(!$editor_config->sel_comment_editor_colorset && $editor_default_config->sel_comment_editor_colorset) $editor_config->sel_comment_editor_colorset = $editor_default_config->sel_comment_editor_colorset;
|
||||
if(!$editor_config->comment_content_style && $editor_default_config->comment_content_style) $editor_config->comment_content_style = $editor_default_config->comment_content_style;
|
||||
return $editor_config;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue