Skip to content

Commit 077f51d

Browse files
committed
fix(RichContentEditable): Emit correct rich content on paste
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent ebf538c commit 077f51d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/NcRichContenteditable/NcRichContenteditable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export default {
504504
selection.addRange(newRange)
505505
506506
// Propagate data
507-
this.updateValue(event.target.innerHTML)
507+
this.updateValue(this.$refs.contenteditable.innerHTML)
508508
},
509509
510510
/**
@@ -549,6 +549,7 @@ export default {
549549
550550
// fix backspace bug in FF
551551
// https://bugzilla.mozilla.org/show_bug.cgi?id=685445
552+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1665167
552553
const selection = window.getSelection()
553554
const node = event.target
554555
if (!selection.isCollapsed || !selection.rangeCount) {

0 commit comments

Comments
 (0)