News for hackers. Stuff that matters.
Re:How to control what is copy-pasted to and from the clipbo... by masklinn on Sunday December 22, 2013 @11:51AM (#6950766)
The actual way to control what is copy/pasted is to use the `oncopy` and `onpaste` events and using the clipboard API[0]. This obviously relies on the browser providing sufficient clipboard access, but that's getting there[1]

Bonus: you can get (on paste) and set (on cut and copy) data in multiple file formats. And obviously you can pre-process pasted data before injecting it in the system.

[0] http://www.w3.org/TR/clipboard-apis/

[1] http://caniuse.com/clipboard

There are no comments on this comment yet.