mavon-editor的安装
npm install mavon-editor --save
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)
mavon-editor的使用
<mavon-editor @imgAdd='editorUpdataImgs' v-model="article.content"/>
editorUpdataImgs(filename,file){
//上传图片
var formData = new FormData();
formData.append(

本文介绍如何利用mavon-editor开发博客系统,包括mavon-editor的安装和使用,以及如何通过marked和highlight.js将Markdown语法转换为高亮显示的HTML。
最低0.47元/天 解锁文章
1800





