Following Copy/Paste code not working in Chrome Extension, I need to write Chrome Extension that copy and paste data using clipboard.
I write following code in Backgrou
As of Chrome 13, clipboard access is no longer experimental.
The commands are now document.execCommand('paste')
, document.execCommand('copy')
and document.execCommand('cut')
.
However, permissions need to be added to your manifest: "clipboardRead"
and "clipboardWrite"
.
Try implementing the above and see how you get on.