5

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 ?

Sam
  • 13,934
  • 26
  • 108
  • 194

2 Answers2

8

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;
}
joka00
  • 2,357
  • 1
  • 10
  • 27
4

thanks @josefKatic for the answer :

.ck-editor__editable {
    min-height: 100px;
    max-height: 100px;
}
Sam
  • 13,934
  • 26
  • 108
  • 194