Post

Replies

Boosts

Views

Activity

Read clipboard data in Safari using javascript
I am trying to read clipboard data using event.clipboardData.getData('Text') or window.clipboardData.getData('Text').When I tried manually triggering ctrl+v I was able to access the data using event.clipboardData.getText(), but when I programatically trigger paste event it did not work.I want a solution where the getData should work without user intervention, provided the user is asked for permission before accessing clipboard, the way it happens in Chrome for navigator.cliboard.readText().
1
0
5.2k
May ’20