CKEditor 将添加 <br>
之后<td>
..如何禁用此功能或关闭此功能?
之前:
<td>
<img style="width: 950px; height: 114px;" src="http://www.example.com/uploads/image/Newsletter/Newsletter2.jpg" alt="">
</td>
保存后:
<td>
<br>
<img style="width: 950px; height: 114px;" src="http://www.example.com/uploads/image/Newsletter/Newsletter2.jpg" alt="">
</td>
我的设置:
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版本:3.6.4
最佳答案
快速而肮脏:保存后我只需替换 <td><br>
与 <td>
此行为没有记录,并且我没有看到打开/关闭它的设置
关于javascript - 如何在CKEditor中的<td>之后禁用自动</br>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13720456/