Skip to content

Commit

Permalink
applied patch surmon-china#197
Browse files Browse the repository at this point in the history
  • Loading branch information
hariseldon78 committed Oct 11, 2020
1 parent 1566e2a commit a4a01ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/vue-quill-editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
// Set editor content
if (this.value || this.content) {
this.quill.pasteHTML(this.value || this.content)
this.quill.setContents(this.quill.clipboard.convert(this.value || this.content))
}
// Disabled editor
Expand Down Expand Up @@ -149,7 +149,7 @@
if (this.quill) {
if (newVal && newVal !== this._content) {
this._content = newVal
this.quill.pasteHTML(newVal)
this.quill.setContents(this.quill.clipboard.convert(newVal))
} else if(!newVal) {
this.quill.setText('')
}
Expand All @@ -160,7 +160,7 @@
if (this.quill) {
if (newVal && newVal !== this._content) {
this._content = newVal
this.quill.pasteHTML(newVal)
this.quill.setContents(this.quill.clipboard.convert(newVal))
} else if(!newVal) {
this.quill.setText('')
}
Expand Down

0 comments on commit a4a01ba

Please sign in to comment.