【vue】基于Vue的Vue-Quill-Editor富文本编辑器
1.下载Vue-Quill-Editor
npm install vue-quill-editor
2.模板引
<template> <div> <el-card style="height: 610px;"> <quill-editor v-model="content" ref="myQuillEditor" style="height: 500px;" :options="editorOption"> </quill-editor> </el-card> </div> </template> <script> import {quillEditor} from 'vue-quill-editor' import 'quill/dist/quill.core.css' import 'quill/dist/quill.snow.css' import 'quill/dist/quill.bubble.css' export default { name: 'FuncFormsEdit', components: { quillEditor }, data () { return { content: null, editorOption: {} } } } </script> <style scoped> </style>