diff --git a/templates/boltcards/display.html b/templates/boltcards/display.html index 96b42f5..5c648a3 100644 --- a/templates/boltcards/display.html +++ b/templates/boltcards/display.html @@ -13,7 +13,7 @@ - + ${item.label} ${card[item.value]} @@ -139,6 +139,16 @@ position: position || 'bottom' }) }) + }, + handlePaste(event, value) { + event.preventDefault(); + const clipboardData = event.clipboardData || window.clipboardData; + const pastedText = clipboardData.getData('text'); + this.card[value] = pastedText; // Update the field with pasted content + this.$q.notify({ + message: 'Pasted from clipboard!', + position: 'bottom' + }); } } })