Is there any way in Google Chrome to access the clipboard (i.e. get and set content of clipboard)? Internet Explorer allows for this by using ActiveX and I got it working in Firefox via XPCOM, I am wondering if there is any way to do this in Chrome?
What I want is to be able to intercept the "paste" events in JavaScript and pre-process the content of the clipboard before 开发者_StackOverflow中文版it's being pasted into the website's textarea (or RTE in my case).
Thanks for any help
Look at FireBreath; you can use it to create a plugin that will work in all browsers (works both as a NPAPI plugin and an ActiveX control)
Check out NPAPI
NPAPI has been deprecated. Use WebAssembly.
精彩评论