mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 13:22:16 +09:00
XE의 문서 서식 기능 추가 (./modules/editor/styles 에 서식 추가 가능)
문서 서식 기능을 글 작성과 볼때 동일한 형태 제공하도록 개선. 각 모듈별 추가 설정에서 문서 서식 설정할 수 있는 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6134 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2e43bfef03
commit
7496aeebb8
54 changed files with 379 additions and 144 deletions
|
|
@ -48,6 +48,7 @@
|
|||
|
||||
if(!$editor_config->editor_skin) $editor_config->editor_skin = 'xpresseditor';
|
||||
if(!$editor_config->comment_editor_skin) $editor_config->comment_editor_skin = 'xpresseditor';
|
||||
if(!$editor_config->content_style) $editor_config->content_style = 'xeStyle';
|
||||
|
||||
return $editor_config;
|
||||
}
|
||||
|
|
@ -65,6 +66,9 @@
|
|||
if(!$option->allow_fileupload) $allow_fileupload = false;
|
||||
else $allow_fileupload = true;
|
||||
|
||||
// content_style 세팅
|
||||
Context::set('content_style', $option->content_style);
|
||||
|
||||
// 자동 저장 유무 옵션 설정
|
||||
if(!$option->enable_autosave) $enable_autosave = false;
|
||||
else $enable_autosave = true;
|
||||
|
|
@ -214,6 +218,7 @@
|
|||
// type에 따른 설정 정리
|
||||
if($type == 'document') {
|
||||
$config->editor_skin = $editor_config->editor_skin;
|
||||
$config->content_style = $editor_config->content_style;
|
||||
$config->sel_editor_colorset = $editor_config->sel_editor_colorset;
|
||||
$config->upload_file_grant = $editor_config->upload_file_grant;
|
||||
$config->enable_default_component_grant = $editor_config->enable_default_component_grant;
|
||||
|
|
@ -223,6 +228,7 @@
|
|||
$config->enable_autosave = $editor_config->enable_autosave;
|
||||
} else {
|
||||
$config->editor_skin = $editor_config->comment_editor_skin;
|
||||
$config->content_style = $editor_config->content_style;
|
||||
$config->sel_editor_colorset = $editor_config->sel_comment_editor_colorset;
|
||||
$config->upload_file_grant = $editor_config->comment_upload_file_grant;
|
||||
$config->enable_default_component_grant = $editor_config->enable_comment_default_component_grant;
|
||||
|
|
@ -242,6 +248,7 @@
|
|||
|
||||
// 에디터 옵션 변수를 미리 설정
|
||||
$option->skin = $config->editor_skin;
|
||||
$option->content_style = $config->content_style;
|
||||
$option->colorset = $config->sel_editor_colorset;
|
||||
|
||||
// 파일 업로드 권한 체크
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue