Skip to content

Commit cfcde1c

Browse files
committed
fixed issue surmon-china#307
1 parent 7e42431 commit cfcde1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
106106
// Update model if text changes
107107
this.quill.on('text-change', (delta, oldDelta, source) => {
108-
let html = this.$refs.editor.children[0].innerHTML
108+
let html = this.$refs.editor.querySelector(".ql-editor").innerHTML
109109
const quill = this.quill
110110
const text = this.quill.getText()
111111
if (html === '<p><br></p>') html = ''

0 commit comments

Comments
 (0)