We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4b217 commit bea9edeCopy full SHA for bea9ede
web/src/view/example/rte/rte.vue
@@ -1,5 +1,6 @@
1
<template>
2
<div>
3
+ <h1>富文本编辑器</h1>
4
<div class="edit_container">
5
<quill-editor
6
:options="editorOption"
@@ -11,6 +12,7 @@
11
12
></quill-editor>
13
<el-button plain @click="saveHtml">保存</el-button>
14
</div>
15
+ <h1>markdown编辑器</h1>
16
<div class="edit">
17
<mavon-editor v-model="model.content"></mavon-editor>
18
<el-button type="primary" size="small" @click="submit">发表</el-button>
@@ -42,7 +44,9 @@ export default {
42
44
onEditorBlur() {}, // 失去焦点事件
43
45
onEditorFocus() {}, // 获得焦点事件
46
onEditorChange() {}, // 内容改变事件
- saveHtml() {}, // 保存方法
47
+ saveHtml() {
48
+ console.log(this.content)
49
+ }, // 保存方法
50
submit(){}
51
}
52
0 commit comments