使用百度编辑器umeditorv1.2.2上传图片插入编辑器时会带域名如下:
<img src="http://www.xxx.xxx/uploads/20161006/14757579522304.jpg" _src="http://www.xxx.com/uploads/20161006/14757579522304.jpg"/>
按常理说应该会有相关的配置去掉这个域名的,但是我没有找到,下面是我的处理方法
找到ueditor\dialogs\image\image.js 这个js文件 的第36行
改成下面这样,替换掉图片路径里面的域名
$.each($imgs, function(index, node) {
$(node).removeAttr("width").removeAttr("height");
// if (node.width > editor.options.initialFrameWidth) {
// &nb