I get an error when use quill in Vue3.
what I write in main.js:
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
const app = createApp(App)
app.component('QuillEditor', QuillEditor)
and create a components.The codes refer to
vue3??vue-quill????????????
index.vue:
<Editor ref="editorRef" :getContent="???" />
<script setup name="List">
import Editor from "@/components/Editor";
</script>
and i get error:
Uncaught (in promise) Error: Invalid theme undefined. Did you register it?
at vue-quill.es.js:1:87365
at new sn (vue-quill.es.js:1:88243)
at c2 (vue-quill.es.js:1:1469)
at vue-quill.es.js:1:1401
at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:164:21)
at hook.__weh.hook.__weh (runtime-core.esm-bundler.js:2687:29)
at flushPostFlushCbs (runtime-core.esm-bundler.js:358:32)
at flushJobs (runtime-core.esm-bundler.js:403:9)
How can i deal with this?