I'm using the following event that fires when a user copies data from the page to the clipboard. But, I can't seem to get the content of the copied data. Is it possible?
$(document).on('copy', function(e){
console.log(e);
});
I've used Chrome's inspector to inspect the object e
. There's a property called origionalEvent
that has a property origionalText
. This only seems to contain the first line of the copied text.
Maybe I'm missing something obvious but I can't seem to figure out how to get the data copied.
Is it possible?