Ueditor自定义增加上传文件图标的style样式

浏览868


Ueditor自定义增加上传文件图标的style样式


ueditor.all.min.js或者ueditor.all. js

搜索dialogs/attachment/fileTypeImages/,这是图标路径

下面for循环里面的html拼接的img标签可以添加样式


打开ueditor.config.js,定位到whitList

,whitList增加imgxss过滤白名单,img增加,'style'


ueditor增加上传文件格式以及显示图标 (例如:增加.apk格式上传文件)

ueditor.all.min.js或者ueditor.all. js

搜索dialogs/attachment/fileTypeImages/

定位到图片的位置:

TIM截图20190214152842.png


红色框框的是我新增的代码


打开config.json文件,增加允许上传文件后缀

TIM截图20190214153100.png




	        
			
	      

    


  • 暂无任何回答