mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@745 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b9afa14f36
commit
cdb85366e2
1 changed files with 7 additions and 4 deletions
|
|
@ -34,10 +34,12 @@ function editorStart(upload_target_srl) {
|
||||||
while(fo_obj.nodeName != 'FORM') { fo_obj = fo_obj.parentNode; }
|
while(fo_obj.nodeName != 'FORM') { fo_obj = fo_obj.parentNode; }
|
||||||
// saved document에 대한 체크
|
// saved document에 대한 체크
|
||||||
if(typeof(fo_obj._saved_doc_title)!="undefined" ) {
|
if(typeof(fo_obj._saved_doc_title)!="undefined" ) {
|
||||||
if(fo_obj._saved_doc_title.value || fo_obj._saved_doc_content.value) {
|
var saved_title = fo_obj._saved_doc_title.value;
|
||||||
|
var saved_content = fo_obj._saved_doc_content.value;
|
||||||
|
if(saved_title || saved_content) {
|
||||||
if(confirm(fo_obj._saved_doc_message.value)) {
|
if(confirm(fo_obj._saved_doc_message.value)) {
|
||||||
fo_obj.title.value = fo_obj._saved_doc_title.value;
|
fo_obj.title.value = saved_title;
|
||||||
fo_obj.content.value = fo_obj._saved_doc_content.value;
|
fo_obj.content.value = saved_content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -163,7 +165,8 @@ function editorGetContent(upload_target_srl) {
|
||||||
if(!iframe_obj) return;
|
if(!iframe_obj) return;
|
||||||
var html = '';
|
var html = '';
|
||||||
html = xInnerHtml(iframe_obj.contentWindow.document.body);
|
html = xInnerHtml(iframe_obj.contentWindow.document.body);
|
||||||
if(!html) return;
|
html = html.replace(/^<br>$/i,'');
|
||||||
|
if(!html) return "";
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue