一, 解决百度编辑器多图上传图片顺序不按照上传顺序排列的问题
修改的文件为dialogs/image/image.js
_this.imageList.push(json); 修改为 _this.imageList[$file.index()] = json;
多文件上传同理:
修改文件dialogs/attachment/attachment.js
_this.fileList.push(json); 修改为 _this.fileList[$file.index()] = json;
二, 解决视频上传宽度不适应的问题
修改文件statics/1gear/ueditor/ueditor.all.js
html.push(creatInsertStr( vi.url, vi.width || 420, vi.height || 280, id + i, null, cl, ‘image’)); 修改为 html.push(creatInsertStr( vi.url, ‘100%’, ”, id + i, null, cl, ‘image’));
小知识普及: HTML5支持的视频格式
第一,MP4,H264+AAC
第二,OGV,Ogg Theora+Ogg Vorbis
第三,WEBM,VP8