这个应该是Ueditor的一个Bug,有两个办法可以解决:
第一:在表格代码中都需要添加
标签就可以了,
第二,修改UEditor的代码:
如果调用的文件是ueditor.all.min.js则打开ueditor.all.min.js,
找到tr:["tbody","thead","tfoot"]将这段文字修改为:tr:["table","tbody","thead","tfoot"]
(添加一个table标签进去)
即可。
如果调用的文件是ueditor.all.js,
也是找到'tr':['tbody','thead','tfoot']将这段文字修改为:'tr':['table','tbody','thead','tfoot']即可。
这两个文件是一样的,一个是编译的,一个是源文件。