1、ueditor/dialogs/image/images.js中的下面代码
accept: {
title: 'Images',
extensions: 'jpg,jpeg,png',
mimeTypes: 'image/*'}
修改为:
accept: {
title: 'Images',
extensions: 'jpg,jpeg,png',
mimeTypes: 'image/jpg,image/jpeg,image/png,image/gif' //修改这行
}
2、ueditor/ueditor.all.min.js 和ueditor.all.js中,搜索accept,将其后面的
accept="image/*"
修改为:
accept="image/jpg,image/jpeg,image/png,image/gif"