mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
자동 저장 문서 불러오면 파일 삭제 안되는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6652 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b1bb5702ce
commit
5c938fa1e2
6 changed files with 33 additions and 12 deletions
|
|
@ -59,8 +59,14 @@ function editorStart_fck(editor, element, editor_sequence, content_key, editor_h
|
|||
setTimeout(function(){
|
||||
editorRelKeys[editor_sequence]['primary'].value = saved_srl;
|
||||
setContent(editor_sequence,saved_content);
|
||||
if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
|
||||
}, 100);
|
||||
xAddEventListener(window,"load",function() { var param = new Array();
|
||||
param['editor_sequence'] = editor_sequence;
|
||||
param['primary_key'] = primary_key;
|
||||
param['mid'] = current_mid;
|
||||
var response_tags = new Array("error","message","editor_sequence","key","title","content","document_srl");
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param, null, response_tags);
|
||||
});
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5781,7 +5781,7 @@ xe.XE_AutoSave = jQuery.Class({
|
|||
jQuery(this.form.title).val(title);
|
||||
jQuery(this.form.document_srl).val(doc_srl);
|
||||
this.oApp.setIR(content);
|
||||
if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
|
||||
if(typeof(editorGetAutoSavedDoc) == 'function') editorGetAutoSavedDoc(this.form);
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -196,6 +196,17 @@ function editorReplaceHTML(iframe_obj, content) {
|
|||
editorRelKeys[srl]["pasteHTML"](content);
|
||||
}
|
||||
|
||||
function editorGetAutoSavedDoc(form) {
|
||||
var param = new Array();
|
||||
param['mid'] = current_mid;
|
||||
param['editor_sequence'] = form.getAttribute('editor_sequence')
|
||||
setTimeout(function() {
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param);
|
||||
if(typeof(reloadFileList) == 'function') reloadFileList(uploaderSettings[param['editor_sequence']]);
|
||||
}, 0);
|
||||
|
||||
}
|
||||
|
||||
// WYSIWYG 모드를 저장하는 확장기능
|
||||
xe.XE_GET_WYSYWYG_MODE = jQuery.Class({
|
||||
name : "XE_GET_WYSYWYG_MODE",
|
||||
|
|
|
|||
|
|
@ -54,7 +54,13 @@ function editorStart_xq(editor, element, editor_sequence, content_key, editor_he
|
|||
if(typeof(fo_obj.title)!='undefined') fo_obj.title.value = saved_title;
|
||||
editorRelKeys[editor_sequence]['content'].value = saved_content;
|
||||
editorRelKeys[editor_sequence]['primary'].value = saved_srl;
|
||||
if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
|
||||
xAddEventListener(window,"load",function() { var param = new Array();
|
||||
param['editor_sequence'] = editor_sequence;
|
||||
param['primary_key'] = primary_key;
|
||||
param['mid'] = current_mid;
|
||||
var response_tags = new Array("error","message","editor_sequence","key","title","content","document_srl");
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param, null, response_tags);
|
||||
});
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
}
|
||||
|
|
@ -72,7 +78,6 @@ function setEditMode(editor, editor_height, editor_sequence) {
|
|||
editor.getFrame().style.width = "100%";
|
||||
editor.setWidth("100%");
|
||||
editor.setHeight(editor_height);
|
||||
editor.getBody().setAttribute('editor_sequence', editor_sequence);
|
||||
editor.addAutocompletions(getAdditionalAutocompletions());
|
||||
|
||||
// 위젯 감시를 위한 더블클릭 이벤트 걸기
|
||||
|
|
|
|||
|
|
@ -107,11 +107,10 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height, f
|
|||
var param = new Array();
|
||||
param['editor_sequence'] = editor_sequence;
|
||||
param['primary_key'] = primary_key;
|
||||
paran['mid'] = current_mid;
|
||||
param['mid'] = current_mid;
|
||||
var response_tags = new Array("error","message","editor_sequence","key","title","content","document_srl");
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param, getAutoSavedSrl, response_tags);
|
||||
if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
|
||||
|
||||
if(typeof(uploadSettingObj[param['editor_sequence']]) == 'object') editorUploadInit(uploadSettingObj[param['editor_sequence']], true);
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
}
|
||||
|
|
@ -568,11 +567,11 @@ function setPreviewHeight(editor_sequence){
|
|||
if(h < 400) h=400;
|
||||
xHeight('editor_preview_'+editor_sequence,h+20);
|
||||
}
|
||||
|
||||
function getAutoSavedSrl(ret_obj, response_tags, c) {
|
||||
var editor_sequence = ret_obj['editor_sequence'];
|
||||
var primary_key = ret_obj['key'];
|
||||
var fo_obj = editorGetForm(editor_sequence);
|
||||
|
||||
fo_obj[primary_key].value = ret_obj['document_srl'];
|
||||
editorUploadInit(uploadSettingObj, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ var uploadedFiles = new Array();
|
|||
var uploaderSettings = new Array();
|
||||
var loaded_images = new Array();
|
||||
var swfUploadObjs = new Array();
|
||||
var uploadSettingObj = new Object();
|
||||
var uploadSettingObj = new Array();
|
||||
|
||||
/**
|
||||
* 업로드를 하기 위한 준비 시작
|
||||
|
|
@ -22,9 +22,9 @@ function editorUploadInit(obj, exe) {
|
|||
if(typeof(obj["allowedFileTypesDescription"])=="undefined") obj["allowedFileTypesDescription"]= "All Files";
|
||||
if(typeof(obj["replaceButtonID"])=="undefined") obj["replaceButtonID"] = "swfUploadButton"+obj["editorSequence"];
|
||||
if(typeof(obj["insertedFiles"])=="undefined") obj["insertedFiles"] = 0;
|
||||
uploadSettingObj = obj;
|
||||
xAddEventListener(window,"load",function() { XEUploaderStart(obj) });
|
||||
if(exe) XEUploaderStart(obj);
|
||||
if(!exe) xAddEventListener(window,"load",function() { XEUploaderStart(obj) });
|
||||
uploadSettingObj[obj["editorSequence"]] = obj;
|
||||
}
|
||||
|
||||
// 파일 업로드를 위한 기본 준비를 함
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue