mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
#19239434 XEED를 저장소에 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7787 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dde0980dec
commit
08453d43e2
9 changed files with 6667 additions and 0 deletions
55
modules/editor/skins/xeed/js/xe_interface.js
Normal file
55
modules/editor/skins/xeed/js/xe_interface.js
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
(function($){
|
||||
|
||||
if (!window.xe) xe = {};
|
||||
if (!xe.Editors) xe.Editors = [];
|
||||
|
||||
function editorStart_xe(editor_seq, primary_key, content_key, editor_height, colorset, content_style, content_font, content_font_size) {
|
||||
var $textarea, $form, $input, saved_str, xeed, as;
|
||||
|
||||
if(typeof(colorset)=='undefined') colorset = 'white';
|
||||
if(typeof(content_style)=='undefined') content_style = 'xeStyle';
|
||||
if(typeof(content_font)=='undefined') content_font= '';
|
||||
if(typeof(content_font_size)=='undefined') content_font_size= '';
|
||||
|
||||
$textarea = $('#xeed-'+editor_seq);
|
||||
$form = $($textarea[0].form).attr('editor_sequence', editor_seq);
|
||||
$input = $form.find('input[name='+content_key+']');
|
||||
|
||||
if($input[0]) $textarea.val($input.remove().val()).attr('name', content_key);
|
||||
$textarea.attr('name', content_key);
|
||||
|
||||
// create an editor
|
||||
xe.Editors[editor_seq] = xeed = new xe.Xeed($textarea);
|
||||
xe.registerApp(xeed);
|
||||
|
||||
// 자동 저장 사용
|
||||
if (as=form.elements['_saved_doc_title']) {
|
||||
//xeed.registerPlugin(new xe.XE_AutoSave(oIRTextarea, elAppContainer));
|
||||
}
|
||||
|
||||
// Set standard API
|
||||
editorRelKeys[editor_seq] = {
|
||||
primary : $form[0][primary_key],
|
||||
content : $form[0][content_key],
|
||||
editor : xeed,
|
||||
func : function(){ return xeed.cast('GET_CONTENT'); },
|
||||
pasteHTML : function(text){ xeed.cast('PASTE_HTML', [text]); }
|
||||
};
|
||||
|
||||
return xeed;
|
||||
}
|
||||
|
||||
window.editorStart_xe = editorStart_xe;
|
||||
|
||||
})(jQuery);
|
||||
|
||||
function editorGetAutoSavedDoc(form) {
|
||||
var param = new Array();
|
||||
param['mid'] = current_mid;
|
||||
param['editor_sequence'] = form.getAttribute('editor_sequence')
|
||||
setTimeout(function() {
|
||||
var response_tags = new Array("error","message","editor_sequence","title","content","document_srl");
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param, function(a,b,c) { editorRelKeys[param['editor_sequence']]['primary'].value = a['document_srl']; if(typeof(uploadSettingObj[param['editor_sequence']]) == 'object') editorUploadInit(uploadSettingObj[param['editor_sequence']], true); }, response_tags);
|
||||
}, 0);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue