fix for xpresseditor

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6057 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-04-09 05:57:33 +00:00
parent 387d11291b
commit 6135ae2c6d
4 changed files with 52 additions and 43 deletions

View file

@ -380,13 +380,13 @@ function insertUploadedFile(editorSequence) {
obj.src = file.download_url;
}
temp_code = '';
temp_code += "<img editor_component=\"image_link\" src=\""+file.download_url+"\" alt=\""+file.source_filename+"\"";
temp_code += "<img editor_component=\"image_link\" src=\""+request_uri+file.download_url+"\" alt=\""+file.source_filename+"\"";
if(obj.complete == true) { temp_code += " width=\""+obj.width+"\" height=\""+obj.height+"\""; }
temp_code += " />\r\n";
text.push(temp_code);
// 이미지외의 경우는 multimedia_link 컴포넌트 연결
} else {
text.push("<img src=\"./common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+file.download_url+"\" width=\"400\" height=\"320\" style=\"display:block;width:400px;height:320px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\"false\" alt=\"\" />");
text.push("<img src=\""+request_uri+"common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+file.download_url+"\" width=\"400\" height=\"320\" style=\"display:block;width:400px;height:320px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\"false\" alt=\"\" />");
}
// binary파일의 경우 url_link 컴포넌트 연결
@ -396,7 +396,6 @@ function insertUploadedFile(editorSequence) {
}
if(jQuery.isFunction(editorRelKeys[editorSequence]['pasteHTML'])){
editorRelKeys[editorSequence]['pasteHTML'](text.join(''));
}else{
@ -411,4 +410,4 @@ function insertUploadedFile(editorSequence) {
if(text.length>0) editorReplaceHTML(iframe_obj, text.join(''));
}
}
}
}