vue-quill-editor 的使用 【js引用的方式】
第一步:下载文件
官网 https://github.com/surmon-china/vue-quill-editor
第二步:引用js
<link rel="stylesheet" href="path/to/quill.core.css"/>
<link rel="stylesheet" href="path/to/quill.snow.css"/>
<link rel="stylesheet" href="path/to/quill.bubble.css"/>
<script type="text/javascript" src="path/to/quill.js"></script>
<script type="text/javascript" src="path/to/vue.min.js"></script>
<script type="text/javascript" src="path/to/dist/vue-quill-editor.js"></script>
<script type="text/javascript">
Vue.use(window.VueQuillEditor)
</script>
第三步:使用【这步网上找不到的】,官网也只介绍到第二步
<quill-editor v-model="city.descStr"></quill-editor>
在该处会出现一个编辑器,如图