chuckh / polymer-quill

Polymer Quill Rich Text Editor
51 stars 29 forks source link

Would like to add some functionality in PR #28

Open jonathanfishbein1 opened 6 years ago

jonathanfishbein1 commented 6 years ago

Can I add the following methods? Just want some kind of go ahead?

  getModule: function (name) {
    return this.quill.getModule.apply(this.quill, arguments)
  },
  addContainer: function (domNode, refNode) {
    return this.quill.addContainer.apply(this.quill, arguments)
  },
  getContents: function (index, length) {
    return this.quill.getContents.apply(this.quill, arguments)
  }

  _enableChanged: function (newValue, oldValue) {
    console.log('newValue ', newValue)
    if (newValue === false) {
      this.async(function () {
        this.disableEditor()
      }, this.delay)
    }
  },
    enable: {
      type: String,
      value: 'true',
      notify: true,
      observer: '_enableChanged'
    },