在CKEditor4版本中,对于编辑器高度设置是通过config配置里面的属性height来实现的,如下方所示
CKEditor5 版本查文档发现已经没有这个配置了,通过网络资料查询得知,CKEditor5编辑器的高度是通过css来控制的,需要写一段css,具体如下所示:
<style>
.ck-editor__editable { min-height: 400px; }
</style>
如此就完美解决了编辑器高度配置,同时还可以配置其他信息
完整配置如下:
[user]
.ck-editor__editable { min-height: 665px; } .ck-editor__editable_inline { height: 665px !important; }
[/user]
http://blog.xqlee.com/article/1128.html