git-svn-id: http://xe-core.googlecode.com/svn/trunk@1577 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-08 05:31:29 +00:00
parent 703f434bb5
commit 10a947d9f5
3 changed files with 15 additions and 0 deletions

View file

@ -9,6 +9,7 @@
<action name="dispEditorAdminSetupComponent" type="view" standalone="true" /> <action name="dispEditorAdminSetupComponent" type="view" standalone="true" />
<action name="procEditorSaveDoc" type="controller" standalone="true" /> <action name="procEditorSaveDoc" type="controller" standalone="true" />
<action name="procEditorRemoveSavedDoc" type="controller" standalone="true" />
<action name="procEditorCall" type="controller" standalone="true" /> <action name="procEditorCall" type="controller" standalone="true" />
<action name="procEditorAdminEnableComponent" type="controller" standalone="true" /> <action name="procEditorAdminEnableComponent" type="controller" standalone="true" />

View file

@ -40,6 +40,14 @@
$this->setMessage('msg_auto_saved'); $this->setMessage('msg_auto_saved');
} }
/**
* @brief 자동저장된 문서 삭제
**/
function procEditorRemoveSavedDoc() {
$oEditorController = &getController('editor');
$oEditorController->deleteSavedDoc();
}
/** /**
* @brief 컴포넌트에서 ajax요청시 해당 컴포넌트의 method를 실행 * @brief 컴포넌트에서 ajax요청시 해당 컴포넌트의 method를 실행
**/ **/

View file

@ -46,6 +46,8 @@ function editorStart(upload_target_srl, resizable, height) {
if(confirm(fo_obj._saved_doc_message.value)) { if(confirm(fo_obj._saved_doc_message.value)) {
fo_obj.title.value = saved_title; fo_obj.title.value = saved_title;
fo_obj.content.value = saved_content; fo_obj.content.value = saved_content;
} else {
editorRemoveSavedDoc();
} }
} }
} }
@ -168,6 +170,10 @@ function _editorAutoSaved(ret_obj) {
return null; return null;
} }
function editorRemoveSavedDoc() {
exec_xml("editor","procEditorRemoveSavedDoc");
}
// 에디터의 전체 내용 return // 에디터의 전체 내용 return
function editorGetContent(upload_target_srl) { function editorGetContent(upload_target_srl) {
var iframe_obj = editorGetIFrame(upload_target_srl); var iframe_obj = editorGetIFrame(upload_target_srl);