From b124ff12afaa08569cfdc5f2bc73fcc5e0e946a1 Mon Sep 17 00:00:00 2001 From: taggon Date: Fri, 26 Nov 2010 06:32:40 +0000 Subject: [PATCH] =?UTF-8?q?=EB=A9=80=ED=8B=B0=EB=AF=B8=EB=94=94=EC=96=B4?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EC=82=BD=EC=9E=85=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7917 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xeed/js/xeed.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/editor/skins/xeed/js/xeed.js b/modules/editor/skins/xeed/js/xeed.js index 3fbc70582..7f8f9c5e2 100644 --- a/modules/editor/skins/xeed/js/xeed.js +++ b/modules/editor/skins/xeed/js/xeed.js @@ -2352,6 +2352,7 @@ FileUpload = xe.createPlugin('FileUpload', { k = f.source_filename.toLowerCase()+'-'+f.file_size; f.name = f.source_filename; + f.size = f.file_size; $item = this.$file_list.find('li[_key='+k+']'); @@ -2498,13 +2499,15 @@ FileUpload = xe.createPlugin('FileUpload', { * @brief Insert a file into the rich editor */ API_INSERT_FILE_INTO : function(sender, params) { - var type = params[0], url = params[1], name = params[2], code, ext, sel; + var type = params[0], url = params[1], name = params[2], ext, sel; if (type == 'img') { - code = ''+name+''; + code = ''+name+'\n'; } else if (type == 'media') { - alert(name); - } else { + code = ''; + } + + if (!code) { code = ''+name+''; }