问题
I've upgraded the old ckeditor with the new ckeditor, only I'm struggling with the behaviour of the new one.
It seems that the new one removes my complete table.
For example from this input:
<table>
<tr>
<td>
This is a test
</td>
</tr>
</table>
he will make this:
<p>This is a test</p>
I need the table, so how can I prevent ckeditor to replace my <table>
tags with a <p>
tag?
回答1:
config.toolbar = [
{ name: 'insert', items: [ 'Table' ] }
];
please use the above code as in new versions of ck editor you have to mention tables in toolbar.
来源:https://stackoverflow.com/questions/19046027/ckeditor-removes-table-tags