문제

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?

도움이 되었습니까?

해결책

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.

Link to the full article

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top