富文本编辑器部分配置

This commit is contained in:
Sky_ID 2022-05-31 16:11:09 +08:00
parent c4f8d31dbc
commit ac248d63b5
2 changed files with 12 additions and 1 deletions

View File

@ -1,9 +1,12 @@
<template>
<div class="content">
</div>
</template>
<script>
// import 'mavon-editor/dist/css/index.css'
export default {
name: "Home",
data(){

View File

@ -4,7 +4,7 @@
<el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
<el-breadcrumb-item>编辑</el-breadcrumb-item>
</el-breadcrumb>
<mavon-editor v-model="data"/>
<mavon-editor :ishljs="true" v-model="data" @save="save"/>
</div>
</template>
@ -15,6 +15,14 @@ export default {
return{
data: ""
}
},
methods:{
save(value,render){
// valuemarkdown
// renderhtml
console.log(value)
console.log(render)
}
}
}
</script>