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