1. 打开编辑器根目录下面的ueditor.all.js文件,找到:
table.setAttribute("data-sort", cmd == "enablesort" ? "sortEnabled" : "sortDisabled")
在这句代码下面加一行:
table.setAttribute("style", "border-collapse:collapse;");
2. 在ueditor.all.js文件中找到:
return '<table style="border-collapse:collapse;"><tbody>' + html.join('') + '</tbody></table>'
改为:
return '<table style="border-collapse:collapse;"><tbody>' + html.join('') + '</tbody></table>'
3. 修改配置文件ueditor.config.js 找到:
whitList
下一行添加:
iframe: ['frameborder','border','marginwidth','marginheight','width','height','src','id'],//动态地图
文章来源:https://www.cnblogs.com/CcPz/p/10012122.html