Skip to content

Ember addon for the Quill rich text editor

License

Notifications You must be signed in to change notification settings

inputhq/ember-quill

 
 

Repository files navigation

Ember-Quill

This README outlines the details of collaborating on this Ember addon.

Installation

  • ember install ember-quill

Component example

import Ember from 'ember';

export default Ember.Component.extend({
  options: {
    theme: "snow",
    modules: {
      toolbar: [
        [{header: [2, 3, 4, false]}],
        ["bold", "italic", "underline", "strike"],
        [{"color": []}],
        [{"list": "ordered"}, {"list": "bullet"}],
        [{"indent": "-1"}, {"indent": "+1"}],
        [{"align": []}],
        ["link"],
        ["clean"]
      ]
    }
  },

  actions: {
    updateText(editor) {
      this.attrs.update(editor.root.innerHTML);
    }
  }
});

Template example

{{quill-editor value=value options=options textChange=(action "updateText")}}

License

The ember-quill is under the Apache 2.0 license

About

Ember addon for the Quill rich text editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.9%
  • HTML 19.1%