vue中引入——富文本编辑器
首先链接 https://github.com/HaoChuan9421/vue-ueditor-wrap npm i vue-ueditor-wrap -S main.js import VueUeditorWrap from "vue-ueditor-wrap"; Vue.component("vue-ueditor-wrap", VueUeditorWrap); <template> <div class="container body-content"> <div class="plan-edit-box"> <vue-ueditor-wrap v-model="centerData.content" :config="myConfig"></vue-ueditor-wrap> </div> <div class="plan-edit-btn"> <el-button type="primary" @click="sureChangeHandler">确定</el-button> <el-button type="danger" @click="resetChangeHandler">重置</el-button> </div> </div> </template> <script> import { axiosPost } from "../../utils/fetch