Intro

Rich text editor using Quill.js

This package allows you to add a rich text editor to your app. It's basically just Quill.js embedded. It allows you to use bold, italic, quotes etc. and it outputs html.

Read more about Quill.js here

Demo

Components

  • quill-editor

    This is the only component in this package. It allows you to embed the Quill.js rich text editor.

    Attributes

    contentThe editor content as HTML.
    themeThe editor theme. You can choose between "snow" or "bubble". Defaults to "bubble".
    show-merge-tagsAccepts Bool True/False. Default is False
    merge-tagsAccepts an OBJECT with key/value pairs of the merge tags to be used.
    Ex. { "First Name": "Andreas" }

    Events

    inputThe "input" event is emitted every time the content of the editor changes. The event payload is the updated HTML content.

Style variables

The following style variables can be used to customize the styling of the editor content.
Add these to your project theme or as component style variables to override the default values.

quill-font-colorThe default font color
quill-bg-colorThe default background color
quill-font-sizeThe default font size
quill-h1-sizeHeading 1 font size
quill-h1-colorHeading 1 font color
quill-h2-sizeHeading 2 font size
quill-h2-colorHeading 2 font color
quill-link-colorHyperlink color
quill-strong-color<strong> font color
quill-quote-colorBlockquote font color
quill-quote-border-colorBlockquote border color