vue 项目中使用 wangEditor
1,vue中安装wangEditor
使用的npm安装 npm install wangeditor --save
2,创建公用组件
在components中创建wangEditor文件夹
组件内容为
3 在父组件中调用
import EditorBar from './editoritem' components: { EditorBar }, data() { return { isClear: false, detail:"" } }, methods: { change(val) { console.log(val) }, }
转自:https://www.cnblogs.com/huge1122/p/11346115.html