'Max-height with Quill rich editor

I try to set the max-height:200px CSS property to the Quill rich editor. I would like a scrollbar to appear when the entry is more than 200px.

As you can see on the following JSfiddle, it is not working properly:

https://jsfiddle.net/Imabot/d8n5mjsq/7/

On GitHub, the Quill founder say it should work : https://github.com/quilljs/quill/issues/812

Any idea what I'm doing wrong?



Solution 1:[1]

Add overflow: auto; in your CSS, it will add the scrollbar.

Solution 2:[2]

This works for me.

.ql-editor{
  height: 250px;
  max-height: 250px;
  overflow: auto;
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mr Robot
Solution 2 Joe Bobson