百度编辑器ueditor图片样式修改,自适应移动端,加入

代码片段
1 行
style="max-width: 100%;"

第一步:找到ueditor.all.js,通过修改ueditor.all.js里的callback()函数,增加样式loader.setAttribute('style','width:100%');
部分情况下修改此处无用无效果,可不修改忽略掉

article image

第二步:修改ueditor.config.js里的window.UEDITOR_CONFIG配置中的白名单过滤,在img中加入style

article image

结果:在html文件中就会加上样式

article image