UEditor插入表格没有边框但有间距

百度编辑器ueditor插入一个表格后,在编辑过程中有表格,但是保存后,在前台网页中没有边框,但有间距,设置方法如下:

在UEditor文件夹下打开ueditor.all.js文件,找到UE.commands['inserttable']方法,

1.在 “html.push('<td”后面添加style="border-width: 1px; border-style: solid;" class="selectTdClass";

2.在“return '<table”后面添加style="border-spacing:0px"

所有需要引用UEditor编辑器时,引用“/UEditor/ueditor.all.js”

posted @ 2015-09-14 13:48  黄者之风  阅读(641)  评论(0编辑  收藏  举报