2019独角兽企业重金招聘Python工程师标准>>>
image.js中186行 增加 r=r.replace("<pre>", "").replace("</pre>", "");
补充:pre有的浏览器样式不一样,用正则替换
r=r.replace(/<pre.*?>/, "").replace("</pre>", "");
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!');}},
参考:
http://blog.csdn.net/dreamerframework/article/details/22392151