Ueditor自定义增加上传文件图标的style样式
ueditor.all.min.js或者ueditor.all. js
搜索dialogs/attachment/fileTypeImages/,这是图标路径
下面for循环里面的html拼接的img标签可以添加样式
打开ueditor.config.js,定位到whitList
,whitList增加img的xss过滤白名单,img增加,'style'
ueditor增加上传文件格式以及显示图标 (例如:增加.apk格式上传文件)
ueditor.all.min.js或者ueditor.all. js
搜索dialogs/attachment/fileTypeImages/
定位到图片的位置:
红色框框的是我新增的代码
打开config.json文件,增加允许上传文件后缀