I'm searching for a way to paste the image from client clipboard as a div background or canvas. All the ways lead me to ZeroClipboard, but in instructions I didn't find anything about getting content from clipboard, not copying to it. How can I paste the image?
Asked
Active
Viewed 176 times
0
-
possible duplicate of [JavaScript get clipboard data on paste event (Cross browser)](http://stackoverflow.com/questions/2176861/javascript-get-clipboard-data-on-paste-event-cross-browser) – Zero Fiber Mar 03 '14 at 13:28
1 Answers
0
Because ZeroClipboard is flashed based, it's bound to the limitations that Adobe has set forth:
Note: Content running in Flash Player or in a non-application sandbox in AIR can call the getData() method only in an event handler for a paste event. In other words, only code running in the AIR application sandbox can call the getData() method outside of a paste event handler.
Therefore, no, you cannot get the contents of the clipboard outside of a paste
event.

Ohgodwhy
- 49,779
- 11
- 80
- 110