如何向 Classic CKEditor 5 添加滚动条?
How to add a scrollbar to Classic CKEditor 5?
文档提到 CKEditor 5 的默认行为是在添加更多文本时增长。
但是我希望编辑器显示滚动条而不是增长。如何才能做到这一点 ?
感谢@josefKatic 的回答:
.ck-editor__editable {
min-height: 100px;
max-height: 100px;
}
根据这个 question 你可以通过将 max-height
添加到 CSS 来实现。
他们document demo也用这种方式。
.ck-editor__editable {
max-height: 400px;
}
文档提到 CKEditor 5 的默认行为是在添加更多文本时增长。
但是我希望编辑器显示滚动条而不是增长。如何才能做到这一点 ?
感谢@josefKatic 的回答:
.ck-editor__editable {
min-height: 100px;
max-height: 100px;
}
根据这个 question 你可以通过将 max-height
添加到 CSS 来实现。
他们document demo也用这种方式。
.ck-editor__editable {
max-height: 400px;
}