mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#1087 기본 에디터를 ckeditor로 설정 변경
This commit is contained in:
parent
58c8a726ce
commit
fb9a502b2b
4 changed files with 14 additions and 13 deletions
|
|
@ -49,8 +49,8 @@ class editorModel extends editor
|
|||
|
||||
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 = 'xpresseditor');
|
||||
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 = 'xpresseditor');
|
||||
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 = 'default');
|
||||
|
||||
if(!$editor_config->content_font && $editor_default_config->content_font) $editor_config->content_font = $editor_default_config->content_font;
|
||||
|
|
@ -202,9 +202,10 @@ class editorModel extends editor
|
|||
else $editor_height = $option->height;
|
||||
// Skin Setting
|
||||
$skin = $option->skin;
|
||||
if(!$skin) $skin = 'xpresseditor';
|
||||
if(!$skin) $skin = 'ckeditor';
|
||||
|
||||
$colorset = $option->colorset;
|
||||
if(!$colorset) $colorset = 'moono';
|
||||
Context::set('colorset', $colorset);
|
||||
Context::set('skin', $skin);
|
||||
|
||||
|
|
@ -306,7 +307,7 @@ class editorModel extends editor
|
|||
|
||||
if(!file_exists($tpl_path.$tpl_file))
|
||||
{
|
||||
$skin = 'xpresseditor';
|
||||
$skin = 'ckeditor';
|
||||
$tpl_path = sprintf('%sskins/%s/', $this->module_path, $skin);
|
||||
}
|
||||
Context::set('editor_path', $tpl_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue