diff --git a/App.vue b/App.vue index c24af7b..5f4cbf5 100755 --- a/App.vue +++ b/App.vue @@ -15,6 +15,7 @@ // import Markdown from './dist/simple'; // import Markdown from 'vue-meditor'; import Markdown from './src/pro'; + // import Markdown from './src/simple'; export default { components: { diff --git a/README.md b/README.md index f5a78aa..a677da3 100755 --- a/README.md +++ b/README.md @@ -425,3 +425,5 @@ export default hljs; ## 问题反馈 对于功能上的缺陷、使用方法和希望扩展的功能,可以提 [Issues](https://github.com/zhaoxuhui1122/vue-markdown/issues)。 + +## license: `MIT` diff --git a/package.json b/package.json index 6621cfb..d4c1957 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-meditor", "description": "一款使用marked和highlight.js开发的一款markdown编辑器", - "version": "2.0.2", + "version": "2.0.3", "author": "zhaoxuhui<1258835133@qq.com>", "license": "MIT", "private": false, diff --git a/src/mixins/common.js b/src/mixins/common.js index c07b6f3..a2ba894 100644 --- a/src/mixins/common.js +++ b/src/mixins/common.js @@ -105,10 +105,11 @@ export default { ); }, handleSave() {// 保存操作 - const { currentValue, themeName } = this; + const { currentValue, themeName,html } = this; this.$emit('on-save', { theme: themeName, - value: currentValue + value: currentValue, + html }); }, toggleSlideDown() {// 显示主题选项