improve text selection

This commit is contained in:
Pete Matsyburka committed 2026-10-03 20:07:24 +03:00
1 parent c1c99621ff
commit 63a874528a
2 files changed
+46 -2

No files matched your search

@@ -468,7 +468,7 @@ export default {
}
},
mounted () {
this.editor.view.dom.addEventListener('mousedown', this.onMouseDown)
this.editor.view.dom.parentElement.addEventListener('mousedown', this.onMouseDown)
document.addEventListener('mouseup', this.onMouseUp)
@@ -476,7 +476,7 @@ export default {
},
beforeUnmount () {
if (!this.editor.isDestroyed) {
this.editor.view.dom.removeEventListener('mousedown', this.onMouseDown)
this.editor.view.dom.parentElement.removeEventListener('mousedown', this.onMouseDown)
this.editor.off('transaction', this.onTransaction)
}