-
ueditor百度编辑器中,多图上传后,图片顺序乱掉的处理方法
上传后,图片的顺序和预期的不一致,需要修改ueditor的源码。一、找到editor/dialogs/attachment/attachment.js文件1、将_this.fileList.push(json);修改为_this.fileList[$file.index()] = json;2、考虑上传失败的情况,加上一个判断,避免在上传失败后,数组中出现undefined项 二、找到editor...
相关Tag