angular - 如何设置CKEditor 5高度
问题描述
使用CKeditor角度组件如何设置编辑器高度?
根据文档,可以通过将编辑器样式设置为:
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;
}
推荐阅读
- thymeleaf - 如何在 Tyhmeleaf 中格式化小数?
- postgresql - 如何总计添加 count(*) 结果?
- css - CSS - 丢失网格,从嵌套网格中删除边距
- python - 删除 tkinter canvas.scan_mark 对鼠标坐标的影响
- json - 如何验证 Postman 的响应中是否存在重复的标头值
- android - 捏缩放整个自定义 GridView 及其组件
- c++ - 类型名 T::type::value 中的预期 unqualified-id
- ios - 如何创建固定文本位置
- c - 为什么 C 中有这么多自定义数据类型?
- node.js - 撇号站点地图数据库配置