surmon-china / vue-quill-editor

@quilljs editor component for @vuejs(2)
https://github.surmon.me/vue-quill-editor
MIT License
7.39k stars 1.03k forks source link

Pass vue context to custom toolbar handler? #192

Open KocaHocTpa opened 6 years ago

KocaHocTpa commented 6 years ago

How to pass vue component instance to the handler toolbar?

handlers: {
   'image' : function () {
      let ref = this.container.parentNode.getAttribute('data-ref');
      vm.$modal.show('image-gallery', {ref: ref, element: this});
   },
mayank-shaan commented 6 years ago

+1