I want to write some text variable into clipboard via Chrome Extension, it will be happened when user presses a short-key. I've done all parts except writing to clipboard.
I've searched entire StackOverflow using these keywords: "[google-chrome-extension] Clipboard"
So I want to say, I've seen all related to:
- Add
clipboardReadandclipboardWritepermission (already done) - Add text into a
<textarea>, calldocument.execCommand('Copy');ordocument.execCommand("Copy", false, null);
Even I tried my extension on StackOverflow's textarea and I inserted my text into wmd-input part of StackOverflow textarea, then selected it, then called copy. Nothing, nothing, nothing...
Everything tried. Please advise... What am I missing?
