In modern browsers, the onpaste event works:
$("#textareaid").bind("paste", function(){});
The problem is with the event, it tells you that this will happen, but it does not give you what the user is inserting. JavaScript has limited access to the buffer and is disabled by default. If access is allowed, you can read the clipboard data and then manipulate it.
epascarello Aug 23 '11 at 11:14 2011-08-23 11:14
source share