vue-quill
A vue component wrapping the quill editor
Installation
npm install --save vue-quill
-or-
yarn add vue-quill
You will also need to include the following css file in your project
Vue 1
For Vue 1 components use v0.1.5 or earlier
Usage
Install the vue plugin
Vue
Component
You may want to initialize the synced variable as a valid delta object too
{ return content: ops: }
Configuration
You can also provide a config object as described in http://quilljs.com/docs/configuration/
{ return content: ops: config: readOnly: true placeholder: 'Compose an epic...' }
Options
By default, the component outputs the content as a delta object, you can pass in a prop to return raw html
Custom Formats
To add custom formats to the editor, you can pass an array of formats as a prop. The array should be in the following format
formats: name: 'custom' options: attribute: 'custom'
Custom Keybindings
You can add custom keybindings by passing through an array in the props, the array should be in the following format
keyBindings: key: 's' { this return false }
Events
This quill component emits events when the text or selection changes on the quill editor