具体步骤如下
1. Install wang-editor (安装)
1 | npm install wangeditor |
(注意 wangeditor
全部是小写字母)
2. 封装成Vue组件
1 | <template> |
- 父组件代码
1 | <template> |
3. 图片上传
配置代码入下
1 | <script> |
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````