We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 681f72a + cda15a9 commit d21cce6Copy full SHA for d21cce6
src/components/NcRichContenteditable/NcRichContenteditable.vue
@@ -715,6 +715,12 @@ export default {
715
if (!document.createRange) {
716
return
717
}
718
+
719
+ if (window.getSelection().rangeCount > 0
720
+ && this.$refs.contenteditable.contains(window.getSelection().getRangeAt(0).commonAncestorContainer)) {
721
+ return
722
+ }
723
724
const range = document.createRange()
725
range.selectNodeContents(this.$refs.contenteditable)
726
range.collapse(false)
0 commit comments