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

This commit is contained in:
zero 2007-03-30 10:01:51 +00:00
parent 10be4c845a
commit 078ea34bc4
13 changed files with 47 additions and 49 deletions

View file

@ -96,7 +96,7 @@
<!-- 첨부파일 영역 -->
<!--%import("./js/uploader.js")-->
<script type="text/javascript">
editor_upload_init("{$upload_target_srl}");
editor_upload_init("{$upload_target_srl}");
</script>
<div class="editor_uploader_box">

View file

@ -165,7 +165,7 @@ function editorGetContent(upload_target_srl) {
if(!iframe_obj) return;
var html = '';
html = xInnerHtml(iframe_obj.contentWindow.document.body);
html = html.replace(/^<br>$/i,'');
if(html) html = html.replace(/^<br>$/i,'');
if(!html) return "";
return html;

View file

@ -30,7 +30,7 @@ function editor_upload_form_set(upload_target_srl) {
// 업로드용 iframe을 생성
if(!xGetElementById('tmp_upload_iframe')) {
if(xIE4Up) {
window.document.body.insertAdjacentHTML("afterEnd", "<iframe name='tmp_upload_iframe' style='display:none;width:1px;height:1px;position:absolute;top:-10px;left:-10px'></iframe>");
window.document.body.insertAdjacentHTML("afterEnd", "<iframe id='tmp_upload_iframe' name='tmp_upload_iframe' style='display:none;width:1px;height:1px;position:absolute;top:-10px;left:-10px'></iframe>");
} else {
var obj_iframe = xCreateElement('IFRAME');
obj_iframe.name = obj_iframe.id = 'tmp_upload_iframe';