标签:style blog http color os io 数据 ar art
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
标签:style blog http color os io 数据 ar art
原文地址:http://my.oschina.net/u/261246/blog/305951