Skip to content

Commit bea9ede

Browse files
author
pixel
committed
为富文本编辑器增加标题
1 parent 6c4b217 commit bea9ede

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/src/view/example/rte/rte.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div>
3+
<h1>富文本编辑器</h1>
34
<div class="edit_container">
45
<quill-editor
56
:options="editorOption"
@@ -11,6 +12,7 @@
1112
></quill-editor>
1213
<el-button plain @click="saveHtml">保存</el-button>
1314
</div>
15+
<h1>markdown编辑器</h1>
1416
<div class="edit">
1517
<mavon-editor v-model="model.content"></mavon-editor>
1618
<el-button type="primary" size="small" @click="submit">发表</el-button>
@@ -42,7 +44,9 @@ export default {
4244
onEditorBlur() {}, // 失去焦点事件
4345
onEditorFocus() {}, // 获得焦点事件
4446
onEditorChange() {}, // 内容改变事件
45-
saveHtml() {}, // 保存方法
47+
saveHtml() {
48+
console.log(this.content)
49+
}, // 保存方法
4650
submit(){}
4751
}
4852
}

0 commit comments

Comments
 (0)