一:下载:
- npm install vue-quill-editor -s
二:main.js中粘贴
- import VueQuillEditor from 'vue-quill-editor'
- import 'quill/dist/quill.core.css'
- import 'quill/dist/quill.snow.css'
- import 'quill/dist/quill.bubble.css'
- Vue.use(VueQuillEditor);
三:dom中写
<quill-editor v-model="text"></quill-editor>
最后的富文本呈现效果: