如何设置CKEditor 5高度

问题描述 投票:3回答:1

使用CKeditor角度分量如何设置编辑器高度?

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

 min-height: 500px !important;

但它不起作用!

angular ckeditor shadow-dom ckeditor5
1个回答
7
投票

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

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

但是如果你想通过component.css设计风格,你需要输入:

:host ::ng-deep .ck-editor__editable_inline {
    min-height: 500px !important;
}
© www.soinside.com 2019 - 2024. All rights reserved.