image.js中186行 增長 r=r.replace("<pre>", "").replace("</pre>", "");
json
補充:pre有的瀏覽器樣式不同,用正則替換瀏覽器
r=r.replace(/<pre.*?>/, "").replace("</pre>", "");
this
uploadComplete: function(r){ var me = this; try{ r=r.replace("", "").replace("", ""); var json = eval('('+r+')'); Base.callback(me.editor, me.dialog, json.url, json.state); }catch (e){ var lang = me.editor.getLang('image'); Base.callback(me.editor, me.dialog, '', (lang && lang.uploadError) || 'Error!'); } },
參考:url
http://blog.csdn.net/dreamerframework/article/details/22392151spa