来源:https://www.npmjs.com/package/mavon-editor
Install mavon-editor (安装)
$ npm install mavon-editor --save
Use (如何引入)
index.js
:
// 全局注册 // import with ES6 import Vue from 'vue' import mavonEditor from 'mavon-editor' import 'mavon-editor/dist/css/index.css' // use Vue.use(mavonEditor) new Vue({ 'el': '#main', data() { return { value: '' } } })
index.html
<div id="main"> <mavon-editor v-model="value"/> </div>