1.首先npm install wangeditor
安装下wangeditor
2.载components文件里引用下组件。
<template>
<!-- 富文本组件 -->
<div ref="editor"></div>
</template>
<script>
import E from 'wangeditor';
export default {
name: "editor",
props: {
getFullText: {
// 回调函数callBack
type: Function,
default: (