I would like to implement a paste-on-click function, similar to that found in Google Docs.
I can get paste to work when initiated by the user via the context menu, or via a keyboard shortcut (using the onpaste event and friends), but I am unable to work out how to get a paste-on-click style actuation to cause the contents of the system clipboard to get pasted - and, from what I've read, this shouldn't actually be possible!
Does anybody have any clue as to how Google is making this work? :-)
Did you read this article that seems to explain clipboard access with the different browsers? Google Docs and Clipboard Access
I know this isn't actually a solution, but more of a workaround. But maybe you'll find it worthy and would suit your needs.
Wouldn't be possible to emulate the key press for [Ctrl]+[V]? It will work on most browsers and OSes, but always keep in mind these keys can be changed at OS level anytime.
Any solution more than this kind of workaround may be too cumbersome for your script some times, and there are times when you just don't want to have too many events/listeners.