Releases: sudodoki/copy-to-clipboard
Releases · sudodoki/copy-to-clipboard
v3.0.4
Fixes:
Enhancement:
- #41 b @mariusandra providing return value true/false depending on whether modern method succeeded or not
Docs:
- Added note on Safari 8 and prompt. (Maybe, should add workaround with selection & 'press cmd+c' tooltip or similar instead of prompt/)
- Updated API regarding return value.
v3.0.3
Testing
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
Other fixes
- Fix for the case when body has
user-select: none
styles - it doesn't inherit it. Thanks to @shvaikalesh - Feature –
message
option passed tocopy
would have#{key}
interpolated corresponding platform key (⌘+C
for macOS/iOS,Ctrl+C
otherwise). Thanks to @shvaikalesh yet again for this one.
v3.0.2
v3.0.1
3.0.0
2.1.0
2.0.0
- Added options:
debug
(console.error
is surpassed by default) andpromprt
(to specify string in prompt - default is 'Copy to clipboard: Ctrl+C, Enter'). Contribution by @evenchange4 - Switched back to using
textContent
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