mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
copy and paste fields
This commit is contained in:
1 parent
af03560494
commit
7fc7283191
3 files changed
+62
-2
No files matched your search
@@ -527,7 +527,15 @@ export default {
|
||||
this.save()
|
||||
},
|
||||
onPaste (e) {
|
||||
e.target.innerText = (e.clipboardData || window.clipboardData).getData('text/plain')
|
||||
const text = (e.clipboardData || window.clipboardData).getData('text/plain')
|
||||
|
||||
const selection = window.getSelection()
|
||||
|
||||
if (selection.rangeCount) {
|
||||
selection.deleteFromDocument()
|
||||
selection.getRangeAt(0).insertNode(document.createTextNode(text))
|
||||
selection.collapseToEnd()
|
||||
}
|
||||
},
|
||||
onResizeCell (e) {
|
||||
if (e.target.id === 'mask') {
|
||||
|
||||
Reference in new issue
Block a user