filereader.js icon indicating copy to clipboard operation
filereader.js copied to clipboard

Disable setupClipboard, ignoring paste events

Open pknowles opened this issue 10 years ago • 1 comments

It doesn't look like there's an interface to stop listening for paste events on <body> for example. Have I missed something?

pknowles avatar Oct 28 '15 12:10 pknowles

You are right - if you call setupClipboard right now there isn't a way to unbind it. In fact none of the setup calls allow that. I'd accept a patch to introduce that behavior. I guess the setup calls could return an object including a destroy() function, or they could check for FileReaderJS.enabled before processing anything (and the page could flip that).

bgrins avatar Mar 26 '16 21:03 bgrins