에디터 추가 설정시 모듈별로 글의 내용 및 글쓰기시에 기본 글꼴을 지정할 수 있는 기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6153 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-20 08:43:29 +00:00
parent 714d618523
commit 0b2413bffb
14 changed files with 51 additions and 4 deletions

View file

@ -70,6 +70,9 @@
if(!$option->content_style) $option->content_style = 'xeStyle';
Context::set('content_style', $option->content_style);
// 기본 글꼴 지정
Context::set('content_font', $option->content_font);
// 자동 저장 유무 옵션 설정
if(!$option->enable_autosave) $enable_autosave = false;
else $enable_autosave = true;
@ -220,6 +223,7 @@
if($type == 'document') {
$config->editor_skin = $editor_config->editor_skin;
$config->content_style = $editor_config->content_style;
$config->content_font = $editor_config->content_font;
$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;
@ -230,6 +234,7 @@
} else {
$config->editor_skin = $editor_config->comment_editor_skin;
$config->content_style = $editor_config->content_style;
$config->content_font = $editor_config->content_font;
$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;
@ -250,6 +255,7 @@
// 에디터 옵션 변수를 미리 설정
$option->skin = $config->editor_skin;
$option->content_style = $config->content_style;
$option->content_font = $config->content_font;
$option->colorset = $config->sel_editor_colorset;
// 파일 업로드 권한 체크