react-gluejar icon indicating copy to clipboard operation
react-gluejar copied to clipboard

Paste Button possible?

Open CDAfonso opened this issue 3 years ago • 1 comments

Congratulations on your wonderful work on this script.

I'm working on a project that will need to add a "Paste" button as alternative to "Ctrl+V". Is it possible to call the pasting method onClick?

Thank you!

CDAfonso avatar Apr 16 '21 12:04 CDAfonso

AFAIK JavaScript cannot access the clipboard in "read" mode. It would be a security issue. Imagine you just copied some password or credit card number. A JS script in a page may read in a loop to spy on your clipboard.

cristian-spiescu avatar Jul 27 '21 17:07 cristian-spiescu