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

@ -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",