mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
improve text selection
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user