Quill editor sizing
Shows that when added to a fixed-size container, the editor's height is too great (doesn't allow for the toolbar).
HTML
<link rel="stylesheet" href="//cdn.quilljs.com/0.19.10/quill.snow.css">
<script src="//cdn.quilljs.com/0.19.10/quill.min.js"></script>
<div id="container" style="height:400px; border: 1px solid #000;">
<!-- Create the toolbar container -->
<div id="toolbar">
<span class="ql-bold ql-format-button"></span>
<button class="ql-italic">Italic</button>
</div>
<!-- Create the editor container -->
<div id="editor">
<div>Hello World!</div>
<div>Some initial <b>bold</b> text</div>
<div><br></div>
</div>
</div>
CSS
.ql-editor {
background-color: #FF0000;
}
JavaScript
var configs = {
theme: 'snow',
modules: {'toolbar': { container: '#toolbar' }}
};
var quill = new Quill('#editor', configs);