如何设置CKEditor 5的高度 [英] How to set CKEditor 5 height
本文介绍了如何设置CKEditor 5的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用CKeditor角度组件如何设置编辑器高度?
Using CKeditor angular component How to set the editor height?
根据文档,可以通过将编辑器样式设置为:
According to the docs, it can be done by setting the editor style to:
min-height: 500px !important;
但这不起作用!
推荐答案
如果将其添加到全局样式表中,则应该可以进行以下操作:
If you add it to the global stylesheet the following should work:
.ck-editor__editable_inline {
min-height: 500px !important;
}
但是,如果要通过component.css
进行样式设置,则需要输入以下内容:
But if you want to style through the component.css
you need to type this:
:host ::ng-deep .ck-editor__editable_inline {
min-height: 500px !important;
}
这篇关于如何设置CKEditor 5的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文