【发布时间】:2018-09-24 18:04:50
【问题描述】:
使用CKeditor angular组件如何设置编辑器高度?
根据文档,可以通过将编辑器样式设置为:
min-height: 500px !important;
但它不起作用!
【问题讨论】:
标签: angular ckeditor shadow-dom ckeditor5
使用CKeditor angular组件如何设置编辑器高度?
根据文档,可以通过将编辑器样式设置为:
min-height: 500px !important;
但它不起作用!
【问题讨论】:
标签: angular ckeditor shadow-dom ckeditor5
如果将其添加到全局样式表中,则以下内容应该可以:
.ck-editor__editable_inline {
min-height: 500px !important;
}
但如果您想通过component.css 设置样式,您需要输入以下内容:
:host ::ng-deep .ck-editor__editable_inline {
min-height: 500px !important;
}
【讨论】:
styles.css,它运行良好。