paste raw text
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
dir="auto"
|
||||
class="pr-1 cursor-text outline-none block"
|
||||
style="min-width: 2px"
|
||||
@paste.prevent="onPaste"
|
||||
@keydown.enter.prevent="onNameEnter"
|
||||
@focus="onNameFocus"
|
||||
@blur="onNameBlur"
|
||||
@@ -191,6 +192,7 @@
|
||||
:class="{ 'cursor-text': isContenteditable }"
|
||||
:placeholder="t('type_value')"
|
||||
@blur="onDefaultValueBlur"
|
||||
@paste.prevent="onPaste"
|
||||
@keydown.enter.prevent="onDefaultValueEnter"
|
||||
>{{ field.default_value }}</span>
|
||||
</div>
|
||||
@@ -510,6 +512,9 @@ export default {
|
||||
|
||||
this.save()
|
||||
},
|
||||
onPaste (e) {
|
||||
e.target.innerText = (e.clipboardData || window.clipboardData).getData('text/plain')
|
||||
},
|
||||
onResizeCell (e) {
|
||||
if (e.target.id === 'mask') {
|
||||
const positionX = e.offsetX / (e.target.clientWidth - 1)
|
||||
|
||||
Reference in New Issue
Block a user