如何设置CKEditor 5的高度

How to set CKEditor 5 height

使用CKeditor angular组件 如何设置编辑器高度?

根据文档,可以通过将编辑器样式设置为:

 min-height: 500px !important;

但是不行!

如果将其添加到全局样式表,则以下内容应该有效:

.ck-editor__editable_inline {
    min-height: 500px !important;
}

但是如果你想通过 component.css 设置样式,你需要输入:

:host ::ng-deep .ck-editor__editable_inline {
    min-height: 500px !important;
}