Quill

A modern WYSIWYG editor built for compatibility and extensibility.

README

Quill Rich Text Editor


Quill is a modern rich text editor built for compatibility and extensibility. It was created by Jason Chen and Byron Milligan and actively maintained by Slab.

To get started, check out https://quilljs.com/ for documentation, guides, and live demos!

Quickstart


Instantiate a new Quill object with a css selector for the div that should become the editor.

  1. ```html
  2. !-- Include Quill stylesheet -->
  3. <link
  4.   href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css"
  5.   rel="stylesheet"
  6. />
  7. !-- Create the toolbar container -->
  8. <div id="toolbar">
  9.   <button class="ql-bold">Bold</button>
  10.   <button class="ql-italic">Italic</button>
  11. </div>
  12. !-- Create the editor container -->
  13. <div id="editor">
  14.   <p>Hello World!</p>
  15.   <p>Some initial <strong>bold</strong> text</p>
  16.   <p><br /></p>
  17. </div>
  18. !-- Include the Quill library -->
  19. <script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>
  20. !-- Initialize Quill editor -->
  21. <script>
  22.   const quill = new Quill("#editor", {
  23.     theme: "snow",
  24.   });
  25. </script>
  26. ```

Take a look at the Quill website for more documentation, guides and live playground!

Download


  1. ```shell
  2. npm install quill
  3. ```

CDN


  1. ```html
  2. !-- Main Quill library -->
  3. <script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>
  4. !-- Theme included stylesheets -->
  5. <link
  6.   href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css"
  7.   rel="stylesheet"
  8. />
  9. <link
  10.   href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.bubble.css"
  11.   rel="stylesheet"
  12. />
  13. !-- Core build with no theme, formatting, non-essential modules -->
  14. <link
  15.   href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.css"
  16.   rel="stylesheet"
  17. />
  18. <script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.js"></script>
  19. ```

Community


Get help or stay up to date.

- Ask questions on Discussions

License


BSD 3-clause