how to disable auto </br> after <td> in CKEditor?

Deadly 提交于 2020-01-05 05:50:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!