百度编辑器UEditor1.4.3以后版本多图上传图片顺序错乱修复
1,在ueditor/dialogs/image/image.js文件里:
将原来的 _this.imageList.push(json); 修改为 _this.imageList[$file.index()] = json;
2, ueditor/dialogs/attachment/attachment.js
将原来的 _this.fileList.push(json);修改为 _this.fileList[$file.index()] = json;
官网的修复方法:
1,在ueditor/dialogs/image/image.js文件里:
再或者在ueditor/dialogs/image/image.js文件里搜索“var $file = $(‘#’ + file.id);”,在其下面加上如下代码即可:
// 搜索
var $file = $('#' + file.id);
// 加入
uploader.stop();
setTimeout(function () { uploader.upload(); }, 1000);
这里的1000是暂停1秒,也可设为500(半秒),400,,700等