Copy stuff into clipboard from your browser using JS
MIT License
Bot releases are hidden (Show)
Published by sudodoki over 4 years ago
Fix d.ts issue #96 by @zombieJ
Published by sudodoki over 5 years ago
Now "toggle-selection": "^1.0.6" (instead of ^1.0.3
Fixes:
Enhancement:
Docs:
Added e2e testing running on saucelabs, which worked for, like, 2 weeks (not long enough to see this release).
There're issues with chrome-driver not supporting keyboard events on mac
There's issue with pasting multiline text with tags in different browsers having extra newline in some browsers.
Would appreciate help fixing this up. There's need to include geckodriver now to run test in default FF browser + figure out whether we can use applescript similar to following snippet
const applescript = require('applescript');
const script = 'tell application "Chrome"\n' +
'activate\n' +
'tell application "System Events"\n' +
'keystroke "v" using {command down}\n' +
'end tell\n' +
'end tell';
on Saucelabs
user-select: none
styles - it doesn't inherit it. Thanks to @shvaikaleshmessage
option passed to copy
would have #{key}
interpolated corresponding platform key (ā+C
for macOS/iOS, Ctrl+C
otherwise). Thanks to @shvaikalesh yet again for this one.Hotfixing issue with Chrome not working via https://github.com/sudodoki/copy-to-clipboard/commit/7e108987ccf46b922709f93de689463fce2a0c45 supposedly
debug
(console.error
is surpassed by default) and promprt
(to specify string in prompt - default is 'Copy to clipboard: Ctrl+C, Enter'). Contribution by @evenchange4textContent
to work around issues with trying to copy content that needed escaping, but preserving newline to be able to copy multiline text. Idea by @shvaikalesh