I am using vue-quill editor and trying to use it with a custom component. Here is my code.
WysiwygInput.vue
<template>
<div class="my-3">
<quill-editor
:options="{
placeholder: placeholder,
}"
v-on:change="($event) => $emit('change', $event.text)"
></quill-editor>
</div>
</template>
Create.vue
<wysiwyg-input @change="setField" placeholder="Post Content" />
I want to access the quill-editor value with an extra parameter, something like this.
<wysiwyg-input @change="setField($event.text, 'content')" placeholder="Post Content" />
So what to change on WysiwygInput.vue ? Thanks is advance.
Codesandbox link: https://codesandbox.io/s/mystifying-benz-w8wgu?file=/src/FormFields.vue