fix on paste
This commit is contained in:
@@ -101,7 +101,7 @@ export default {
|
||||
onPaste (e) {
|
||||
const text = (e.clipboardData || window.clipboardData).getData('text/plain')
|
||||
|
||||
const selection = window.getSelection()
|
||||
const selection = this.$el.getRootNode().getSelection()
|
||||
|
||||
if (selection.rangeCount) {
|
||||
selection.deleteFromDocument()
|
||||
|
||||
Reference in New Issue
Block a user