diff --git a/README.md b/README.md index 494ca2c..82d5072 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Then you'll be able to use Editor component. You must give your editor component ```ref```,which will help you to call the functions to set editor mode,clean objects or undo/redo your changes. ```vue - + mounted() { $this.$refs.editor.set(this.editor.mode,this.editor.options); diff --git a/package.json b/package.json index c1a8aa9..91bd698 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-image-markup", - "version": "3.1.10", + "version": "3.2.0", "description": "vue-image-markup will provide you to edit uploaded image easily and save it.", "main": "src/Editor.vue", "repository": { diff --git a/src/Editor.vue b/src/Editor.vue index edb7c34..c6e41af 100644 --- a/src/Editor.vue +++ b/src/Editor.vue @@ -23,7 +23,7 @@ required: true }, editorId: { - type: [String,Number], + type: String, default: 'c', required: false }