Vue-quill-editor enter key event

does the vue-quill-editor plug-in have an enter key event

Jul.25,2021

looks at the document below. You can bind keyboard events. Link here https://quilljs.com/docs/modu.


give you a chestnut

methods:{
        onEditorReady(quill) {
      this.$set(this.get, 'quill', quill);
      
      // 
      this.get.quill.keyboard.addBinding({ key: 'B' }, this.keyBindFn);
    },
    keyBindFn() {
      let vm = this;
      console.log('1 :', 1);
    },
}
Menu