Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Releases: CroudTech/vue-quill

Remove toolbar config merge

12 Apr 07:46
Compare
Choose a tag to compare

Previous to this release, your custom toolbar config would have been merged together with the default toolbar config, which made it difficult to remove default toolbar elements.

With this release, the following config will now produce a toolbar with exactly what it says on the tin (Bold, orderedList, unorderedList)

editorConfig: {
  modules: {
    toolbar: [
      ['bold'],
      [
        { 'list': 'ordered' }, { 'list': 'bullet' }
      ]
    ]
  },
  theme: 'snow'
}

Update content from parent

19 Jul 14:34
Compare
Choose a tag to compare

Allow updating of the content from the parent by emitting an event.

this.$refs.quill.$emit('set-html', '<h1>Test</h1>')
this.$refs.quill.$emit('set-content', [{ insert: 'Hello ' }])