Skip to content

Commit

Permalink
Merge pull request #3837 from nextcloud/fix/richcontent-paste
Browse files Browse the repository at this point in the history
`NcRichContentEditable`: Emit correct rich content on paste
  • Loading branch information
raimund-schluessler authored Mar 1, 2023
2 parents deb68fb + 077f51d commit a56ef0b
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 a56ef0b

Please sign in to comment.