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:
zero 2009-04-17 03:54:39 +00:00
parent 2e43bfef03
commit 7496aeebb8
54 changed files with 379 additions and 144 deletions

View file

@ -1,9 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body id="xpressInput" class="xpressOutput">
</body>
</html>

View file

@ -1,9 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.black.css" rel="stylesheet" type="text/css" />
</head>
<body id="xpressInput" class="xpressOutput">
</body>
</html>

View file

@ -1,30 +0,0 @@
@charset "utf-8";
/* NHN > UIT Center > Open UI Technology Team > Jeong Chan Myeong(dece24@nhncorp.com) 200812 */
html,
body{ height:100%; background-color:transparent; color:#fff;}
#xpressInput{ margin:0 10px 0 0;}
.xpressOutput{ font-size:12px; line-height:1.6; font-family:Dotum, AppleGothic, Sans-serif;}
.xpressOutput p{ margin-top:7px; margin-bottom:7px;}
.xpressOutput blockquote.q1,
.xpressOutput blockquote.q2,
.xpressOutput blockquote.q3,
.xpressOutput blockquote.q4,
.xpressOutput blockquote.q5,
.xpressOutput blockquote.q6,
.xpressOutput blockquote.q7{ padding:10px; margin-left:15px; margin-right:15px;}
.xpressOutput blockquote.q1{ padding:0 10px; border-left:2px solid #ccc;}
.xpressOutput blockquote.q2{ padding:0 10px; background:url(../img/bg_qmark.gif) no-repeat;}
.xpressOutput blockquote.q3{ border:1px solid #d9d9d9;}
.xpressOutput blockquote.q4{ border:1px solid #d9d9d9; background:#fbfbfb;}
.xpressOutput blockquote.q5{ border:2px solid #707070;}
.xpressOutput blockquote.q6{ border:1px dashed #707070;}
.xpressOutput blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;}
.xpressOutput sup{ font:10px Tahoma;}
.xpressOutput sub{ font:10px Tahoma;}
.xpressOutput table td{ padding:4px;}

View file

@ -1,32 +0,0 @@
@charset "utf-8";
/* NHN > UIT Center > Open UI Technology Team > Jeong Chan Myeong(dece24@nhncorp.com) 200812 */
html,
body{ height:100%; background-color:transparent;}
#xpressInput{ margin:0 10px 0 0;}
.xpressOutput{ font-size:12px; line-height:1.6; font-family:Dotum, AppleGothic, Sans-serif;}
.xpressOutput p{ margin-top:7px; margin-bottom:7px;}
.xpressOutput blockquote.q1,
.xpressOutput blockquote.q2,
.xpressOutput blockquote.q3,
.xpressOutput blockquote.q4,
.xpressOutput blockquote.q5,
.xpressOutput blockquote.q6,
.xpressOutput blockquote.q7{ padding:10px; margin-left:15px; margin-right:15px;}
.xpressOutput blockquote.q1{ padding:0 10px; border-left:2px solid #ccc;}
.xpressOutput blockquote.q2{ padding:0 10px; background:url(../img/bg_qmark.gif) no-repeat;}
.xpressOutput blockquote.q3{ border:1px solid #d9d9d9;}
.xpressOutput blockquote.q4{ border:1px solid #d9d9d9; background:#fbfbfb;}
.xpressOutput blockquote.q5{ border:2px solid #707070;}
.xpressOutput blockquote.q6{ border:1px dashed #707070;}
.xpressOutput blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;}
.xpressOutput sup{ font:10px Tahoma;}
.xpressOutput sub{ font:10px Tahoma;}
.xpressOutput table td{ padding:4px;}
.xpressOutput table .xe_selected_cell{ background-color: #d6e9ff}

View file

@ -514,7 +514,7 @@
<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}");
var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}");
//]]></script>
<!--@end-->

View file

@ -6169,4 +6169,4 @@ xe.XE_Table = jQuery.Class({
return isNaN(span)?1:span;
}
}).extend(xe.XE_Table);
}).extend(xe.XE_Table);

View file

@ -2,11 +2,11 @@ if (!window.xe) xe = {};
xe.Editors = [];
function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset) {
function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset, content_style) {
if(typeof(colorset)=='undefined') colorset = 'white';
if(typeof(content_style)=='undefined') content_style = 'xeStyle';
var target_src = editor_path+'/blank.html';
if(colorset == 'black') target_src = editor_path+'blank_black.html';
var target_src = request_uri+'modules/editor/styles/'+content_style+'/editor.html';
var textarea = jQuery("#xpress-editor-"+editor_sequence);
var iframe = jQuery('<iframe id="editor_iframe_'+editor_sequence+'" allowTransparency="true" frameborder="0" src="'+target_src+'" scrolling="yes" style="width:100%;height:'+editor_height+'px">');
@ -74,6 +74,7 @@ function editorStart_xe(editor_sequence, primary_key, content_key, editor_height
// register plugins
oEditor.registerPlugin(new xe.CorePlugin(null));
oEditor.registerPlugin(new xe.XE_PreservTemplate(jQuery("#xpress-editor-"+editor_sequence).val()));
oEditor.registerPlugin(new xe.StringConverterManager());
oEditor.registerPlugin(new xe.XE_EditingAreaManager("WYSIWYG", oIRTextarea, {nHeight:parseInt(editor_height), nMinHeight:205}, null, elAppContainer));
oEditor.registerPlugin(new xe.XE_EditingArea_HTMLSrc(oHTMLSrcTextarea));
@ -207,6 +208,19 @@ xe.XE_GET_WYSYWYG_CONTENT = jQuery.Class({
}
});
// 서식 기본 내용을 보존
xe.XE_PreservTemplate = jQuery.Class({
name : "XE_PreservTemplate",
isRun : false,
$BEFORE_SET_IR : function(content) {
if(!this.isRun && !content) {
this.isRun = true;
return false;
}
}
});
// 미리보기 확장기능
xe.XE_Preview = jQuery.Class({
name : "XE_Preview",