Quill Form
Module for simple form and input field bindings in Quill. Automatically creates hidden input fields for a form and adds submit handling and submit by key (⌘/Ctrl+S). You may also specify your own custom input fields. It creates fields for text, html and delta.
Installation
Yarn
yarn add quill-form
NPM
npm i quill-form
Usage
To add quill-form to your Quill, simply add the javascript after quill or import it in your project. Make sure that your editor is placed within a form or specify custom input fields.
... ... ...
Options
Specify one option or more to override defaults.
var editor = '#editor-container' modules: form: htmlField: 'html' // Input name string, HTMLElement or false deltaField: 'delta' // Input name string, HTMLElement or false textField: 'text' // Input name string, HTMLElement or false submitKey: // Keyboard key binding object or false key: 'S' shortKey: true updateOnBlur: true // Updates the fields on blur updateOnChange: false // Updates the fields on every change ;