diff --git a/App.vue b/App.vue index bc6552b..7da290f 100755 --- a/App.vue +++ b/App.vue @@ -6,6 +6,7 @@ @on-copy="onCopy" @on-upload-image="onUpladImage" @on-save="onSave" + @on-error="onError" :height="500" /> @@ -38,6 +39,9 @@ }, onSave(data) { console.log(data); + }, + onError(err) { + console.log(err) } } } diff --git a/README.md b/README.md index a677da3..6cc3ce4 100755 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ import { MarkdownPreview } from 'vue-meditor' ```js import Markdown from '@/components/markdown/...'; ``` -专业版 +专业版 ```js import MarkdownPro from '@/components/markdown/pro'; ``` @@ -80,7 +80,7 @@ import MarkdownPreview from '@/components/markdown/preview';