Skip to content

Commit 609b426

Browse files
author
zhaoxh
committed
onSave事件返回结果增加字段
1 parent 966b92a commit 609b426

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// import Markdown from './dist/simple';
1616
// import Markdown from 'vue-meditor';
1717
import Markdown from './src/pro';
18+
// import Markdown from './src/simple';
1819
1920
export default {
2021
components: {

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,3 +425,5 @@ export default hljs;
425425
## 问题反馈
426426

427427
对于功能上的缺陷、使用方法和希望扩展的功能,可以提 [Issues](https://github.com/zhaoxuhui1122/vue-markdown/issues)
428+
429+
## license: `MIT`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-meditor",
33
"description": "一款使用marked和highlight.js开发的一款markdown编辑器",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"author": "zhaoxuhui<1258835133@qq.com>",
66
"license": "MIT",
77
"private": false,

src/mixins/common.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ export default {
105105
);
106106
},
107107
handleSave() {// 保存操作
108-
const { currentValue, themeName } = this;
108+
const { currentValue, themeName,html } = this;
109109
this.$emit('on-save', {
110110
theme: themeName,
111-
value: currentValue
111+
value: currentValue,
112+
html
112113
});
113114
},
114115
toggleSlideDown() {// 显示主题选项

0 commit comments

Comments
 (0)