Quill

Quill is a powerful rich text editor built for compatibility and extensibility. For more details

HTML Code
<div>
    <div id="editor" style="height:200px"></div>
</div>
Script
if (document.querySelectorAll("#editor").length) {
  console.log(typeof Quill)
  if(typeof Quill !== typeof undefined) {
    const quill = new Quill('#editor', {
      theme: 'snow'
    });
  }
}