mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
에디터 추가 설정시 모듈별로 글의 내용 및 글쓰기시에 기본 글꼴을 지정할 수 있는 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6153 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
714d618523
commit
0b2413bffb
14 changed files with 51 additions and 4 deletions
|
|
@ -509,12 +509,11 @@
|
|||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_path = "{$editor_path}";
|
||||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}");
|
||||
var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}",'{$content_font}');
|
||||
//]]></script>
|
||||
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -2,9 +2,10 @@ if (!window.xe) xe = {};
|
|||
|
||||
xe.Editors = [];
|
||||
|
||||
function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset, content_style) {
|
||||
function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset, content_style, content_font) {
|
||||
if(typeof(colorset)=='undefined') colorset = 'white';
|
||||
if(typeof(content_style)=='undefined') content_style = 'xeStyle';
|
||||
if(typeof(content_font)=='undefined') content_font= '';
|
||||
|
||||
var target_src = request_uri+'modules/editor/styles/'+content_style+'/editor.html';
|
||||
|
||||
|
|
@ -140,6 +141,10 @@ function editorStart_xe(editor_sequence, primary_key, content_key, editor_height
|
|||
oEditor.registerPlugin(new xe.XE_EditingArea_WYSIWYG(oWYSIWYGIFrame));
|
||||
oEditor.registerPlugin(new xe.XpressRangeManager(oWYSIWYGIFrame));
|
||||
oEditor.registerPlugin(new xe.XE_ExecCommand(oWYSIWYGIFrame));
|
||||
|
||||
if(content_font && !doc.body.style.fontFamily) {
|
||||
doc.body.style.fontFamily = content_font;
|
||||
}
|
||||
|
||||
// run
|
||||
oEditor.run();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue