0
我在我的项目中使用CKEditor,我有要求在页面上打印ckeditor内容,所以我想限制ckeditor的高度,所以我给高度为220px和使用溢出删除滚动条:隐藏,但是当用户去ckeditor区域结束并按下输入时,内容增加而没有滚动条选项。CKEDITOR自动增加内容高度时使用编辑器底部输入
有什么办法可以限制ckeditor中的内容行数?
下面是我的CKEditor代码:
CKEDITOR.replace('summaryEditor',
{
toolbar:
[
{ name: 'customToolBar', items: ['Bold', 'Italic', 'Underline', 'JustifyLeft', 'JustifyCenter', 'Font', 'FontSize', 'NumberedList', 'BulletedList', 'Link', 'Image', 'Table', 'Source', 'questions'] }
],
height: '220px',
resize_enabled: false,
contentsCss: 'body {overflow:hidden;}',
autoGrow_onStartup: false,
extraPlugins: 'questions',
removePlugins: 'elementspath'
});