The documentation mentions that the default behaviour of CKEditor 5 is to grow when more text is added.
However I want the editor to show a scrollbar instead of growing. How can this be done ?
The documentation mentions that the default behaviour of CKEditor 5 is to grow when more text is added.
However I want the editor to show a scrollbar instead of growing. How can this be done ?
According to this question you can achieve this by adding max-height
to CSS.
This way is also used in their document demo.
.ck-editor__editable {
max-height: 400px;
}
thanks @josefKatic for the answer :
.ck-editor__editable {
min-height: 100px;
max-height: 100px;
}