From 4790e07045dc2609a5efe048e0a73df32fb27c81 Mon Sep 17 00:00:00 2001 From: Brock Date: Tue, 19 Feb 2019 08:49:10 +0000 Subject: [PATCH 1/2] If quill is empty return empty string rather than new line default --- src/Quill.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Quill.vue b/src/Quill.vue index aaee0d1..16d2801 100644 --- a/src/Quill.vue +++ b/src/Quill.vue @@ -96,7 +96,11 @@ this.editor.on('text-change', (delta, source) => { this.$emit('text-change', this.editor, delta, source) - this.$emit('input', this.output != 'delta' ? this.editor.root.innerHTML : this.editor.getContents()) + if (this.editor.getText().length <= 1) { + this.$emit('input', '') + } else { + this.$emit('input', this.output != 'delta' ? this.editor.root.innerHTML : this.editor.getContents()) + } }) this.editor.on('selection-change', (range) => { From d23ee1568fecbd9a929c7c69c9a2dc1b0507cdcd Mon Sep 17 00:00:00 2001 From: Brock Date: Tue, 19 Feb 2019 08:49:53 +0000 Subject: [PATCH 2/2] 1.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f367236..7fb27dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-quill", - "version": "1.5.0", + "version": "1.5.1", "description": "Vue quill component and filter", "main": "vue-quill.js", "browserify": {