网友的修复方法:
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;
参考链接:http://blog.csdn.net/DearVera/article/details/76101129?locationNum=7&fps=1
官网的修复方法:
1,在ueditor/dialogs/image/image.js文件里:
参考链接:https://github.com/fex-team/ueditor/pull/2659
经过测试上面的修改加上后并不能完全解决错乱问题,有的时候是可以的,有的时候是失败的,最后发现是JS并发导致的,遂用如下方法彻底解决:
小编新增方法:
1,在ueditor/dialogs/image/image.js文件里搜索“var $file = $(‘#’ + file.id);”,在其下面加上如下代码即可:
uploader.stop(); setTimeout(function () { uploader.upload(); }, 1000);
这里的1000是暂停1秒,也可设为500(半秒),400,,700等