javascript catch paste event in textarea
问题 I currently have a textarea which I requires control over text that has been pasted in, essentially I need to be able to take whatever the user wants to paste into a textarea and place it into a variable. I will then work out the position in which they pasted the text and the size of the string to remove it from the textarea, Then at the end deal with the text thats is in the variable in my own way. My question: how would I go about getting a copy of the text in a variable that was just