如何停用自动< / br>之后< td>在CKEditor? [英] how to disable auto </br> after <td> in CKEditor?
本文介绍了如何停用自动< / br>之后< td>在CKEditor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
CKEditor将在< td>
之后添加< br>
..如何禁用或关闭此功能?
之前:
< td>
< img style =width:950px; height:114px; src =http://www.abc.com/uploads/image/Newsletter/Newsletter2.jpgalt =>
< / td>
保存后:
< td>
< br>
< img style =width:950px; height:114px; src =http://www.abc.com/uploads/image/Newsletter/Newsletter2jpgalt =>
< / td>
我的设置:
CKEDITOR.editorConfig = function(config)
{
//此处定义对默认配置的更改。例如:
// 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解决方案quick和dirty:after save后,我只需要用
< $ c $>替换
< td>< br& td>
此行为未记录,我没有看到设置为打开/关闭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
解决方案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这篇关于如何停用自动< / br>之后< td>在CKEditor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文