This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Releases: CroudTech/vue-quill
Releases · CroudTech/vue-quill
Remove toolbar config merge
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
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 ' }])