mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
에디터 모듈별 설정시 편집/보여주기때의 글꼴 뿐 아니라 글꼴 크기도 지정할 수 있는 기능을 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6459 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c052eebd27
commit
7d0352479a
13 changed files with 44 additions and 3 deletions
|
|
@ -92,6 +92,7 @@
|
|||
}
|
||||
if(count($font_list)) $editor_config->content_font = '"'.implode('","',$font_list).'"';
|
||||
}
|
||||
$editor_config->content_font_size = Context::get('content_font_size');
|
||||
$editor_config->sel_editor_colorset = Context::get('sel_editor_colorset');
|
||||
$editor_config->sel_comment_editor_colorset = Context::get('sel_comment_editor_colorset');
|
||||
|
||||
|
|
@ -171,7 +172,14 @@
|
|||
}
|
||||
}
|
||||
$content_font = $editor_config->content_font;
|
||||
if($content_font) Context::addHtmlHeader('<style type="text/css" charset="UTF-8"> .xe_content { font-family:'.$content_font.'; } </style>');
|
||||
$content_font_size = $editor_config->content_font_size;
|
||||
if($content_font || $content_font_size) {
|
||||
$buff = '<style type="text/css" charset="UTF-8"> .xe_content { ';
|
||||
if($content_font) $buff .= 'font-family:'.$content_font.';';
|
||||
if($content_font_size) $buff .= 'font-size:'.$content_font_size.';';
|
||||
$buff .= '</style>';
|
||||
Context::addHtmlHeader($buff);
|
||||
}
|
||||
}
|
||||
|
||||
$content = $this->transComponent($content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue