1.安装命令:
npm install @vueup/vue-quill@latest --save
2.main.js中引入
import {QuillEditor} from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
let app = createApp(App);
app.component('QuillEditor', QuillEditor)
3.使用
<QuillEditor style="width:100%;height:400px;" contentType="html" toolbar="full"/>