1.安装mavon-editor

$ npm install mavon-editor --save

需要使用Markdown编辑器的页面js中:

import { mavonEditor } from ‘mavon-editor’
import ‘mavon-editor/dist/css/index.css’

export default {
components: {
mavonEditor
}
}
html:

<mavonEditor v-model=“content” ref=“md” @imgAdd="$imgAdd" @change=“changeMavon”/>
js:

data(){
return{
content:’’,
configs:{

       }
}
},
components:{
mavonEditor
},
methods:{
changeMavon(){ },
$imgAdd(){ }
}

最新文章

  1. 《MySchool数据库设计优化》内部测试
  2. struts2 CVE-2012-0838 S2-007 Remote Code Execution &amp;&amp; Hotfix
  3. Python好用的网站收集
  4. 【poj3243-Clever Y】高次同余方程-拓展BabyStepGiantStep
  5. IPVS实现分析
  6. [Swust OJ 85]--单向公路(BFS)
  7. 挂载了Cinder Volume的实例无法动态迁移排错
  8. 物理dataguard 正常切换 脚色转换,switchover_status 状态改变
  9. linux入门--Linux的应用领域
  10. AGC-018 C
  11. 设计模式学习心得&lt;桥接模式 Bridge&gt;
  12. 跟我一起用node-express搭建一个小项目(node连接mongodb)[三]
  13. UVA 221 Urban Elevations
  14. Vue + Element UI 实现权限管理系统 前端篇(十二):用户管理模块
  15. java中使用jdbc配置连接串时mysql 5.6与5.7版本“编码”参数有区别!
  16. [LeetCode] 422. Valid Word Square_Easy
  17. FreeMarker:Java模板引擎
  18. 【html5】html5 本地存储
  19. C语言实现线性表(链式存储方式)
  20. juqery和dom对象互换

热门文章

  1. Unity 打包到XCode自动化设置参数
  2. io流转换为Multipart文件
  3. C# 教你如何终止Task线程
  4. windows文件夹被占用的解除办法
  5. 搭PHP本地环境-windows
  6. CRON表达式转换成中文
  7. js获取各种高度的方法
  8. 【QT】打包QT程序
  9. docker学习(dockerfile打jar包为镜像)
  10. Java基础学习:4、类和对象及方法