问题
CKEditor will add <br>
after <td>
.. how to disable this or turn off this function?
Before :
<td>
<img style="width: 950px; height: 114px;" src="http://www.abc.com/uploads/image/Newsletter/Newsletter2.jpg" alt="">
</td>
After Save :
<td>
<br>
<img style="width: 950px; height: 114px;" src="http://www.abc.com/uploads/image/Newsletter/Newsletter2.jpg" alt="">
</td>
My setting :
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbar = "MyToolbar";
config.toolbarCanCollapse = false;
config.resize_enabled = false;
config.height = '280';
config.width = '1100';
config.enterMode = CKEDITOR.ENTER_P;
CKEditor Version : 3.6.4
回答1:
quick and dirty: after save I would just replace <td><br>
with <td>
This behaviour is not documented, and I don't see a setting to turn it on/off
来源:https://stackoverflow.com/questions/13720456/how-to-disable-auto-br-after-td-in-ckeditor