提交 38d3c755 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

为富文本编辑器增加标题

上级 8475853b
<template>
<div>
<h1>富文本编辑器</h1>
<div class="edit_container">
<quill-editor
:options="editorOption"
......@@ -11,6 +12,7 @@
></quill-editor>
<el-button plain @click="saveHtml">保存</el-button>
</div>
<h1>markdown编辑器</h1>
<div class="edit">
<mavon-editor v-model="model.content"></mavon-editor>
<el-button type="primary" size="small" @click="submit">发表</el-button>
......@@ -42,7 +44,9 @@ export default {
onEditorBlur() {}, // 失去焦点事件
onEditorFocus() {}, // 获得焦点事件
onEditorChange() {}, // 内容改变事件
saveHtml() {}, // 保存方法
saveHtml() {
console.log(this.content)
}, // 保存方法
submit(){}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册