How to use onkeyup in quill editor in nuxt js

Viewed 261

How to use onkeyup, onchange events in quill editor in nuxt js i have to check the text entered for bad words

<quill-editor  id="description" v-model="$v.form.description.$model"/>
1 Answers

With quill-editor, you can use @change

<quill-editor :content="text" @change="onTextChange" />

onTextChange(newText) {
  // Do your verification
  this.text = newText;
}
Related