Skip to content

Commit

Permalink
fix(RichContentEditable): Emit correct rich content on paste
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Feb 28, 2023
1 parent ebf538c commit 077f51d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export default {
selection.addRange(newRange)
// Propagate data
this.updateValue(event.target.innerHTML)
this.updateValue(this.$refs.contenteditable.innerHTML)
},
/**
Expand Down Expand Up @@ -549,6 +549,7 @@ export default {
// fix backspace bug in FF
// https://bugzilla.mozilla.org/show_bug.cgi?id=685445
// https://bugzilla.mozilla.org/show_bug.cgi?id=1665167
const selection = window.getSelection()
const node = event.target
if (!selection.isCollapsed || !selection.rangeCount) {
Expand Down

0 comments on commit 077f51d

Please sign in to comment.