How can a web application detect a paste event and retrieve the data to be pasted?
I would like to remove HTML content before the text is pasted into a rich text edi
Simple solution:
document.onpaste = function(e) { var pasted = e.clipboardData.getData('Text'); console.log(pasted) }