关于在vue项目中使用wangEditor

  1. vue中安装wangEditor
    使用的npm安装 npm install wangeditor --save

  2. 创建公用组件
    在components中创建wangEnduit文件夹

组件 wangEnduit






  1. 在父组件中调用


import EditorBar from './editoritem'
components: { EditorBar },
data() {
  return {
    isClear: false,
    detail: ""
  }
},  
methods: {
  change(val) {
    console.log(val)
  },
}

原文转自:关于在vue项目中使用wangEditor

你可能感兴趣的:(关于在vue项目中使用wangEditor)