Using VueQuill in my vue3 app i am receving the following console error when trying to show a html string -
My code -
<template>
<div class="">
<QuillEditor v-model:content="data" contentType="html" />
</div>
</template>
<script>
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
export default {
name: 'HomeView',
components: {
QuillEditor
},
setup(){
const data = "<div><p>test test test</p></div>"
return {
data
}
}
}
</script>
This error only appears when using the following prop
contentType="html"
The error does not show when using
contentType="text"
What i have tried
Wrapping the QuillEditor element with -
<div v-if="data !== undefined">
<QuillEditor v-model:content="data" contentType="html" />
</div>
To ensure that the data is mounted before creating QuillEditor however this does not work.