Replies: 1 comment 1 reply
-
I think this script does not.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I say "involving HTML elements" I'm referring to the first param of the constructor.
I see that the library works by creating a fake input area element and then executing
document.execCommand
, but why is it necessary to be bound to some other trigger element if I just want to place some text in the clipboard?I think the library would benefit from having a static method
Clipboard.setClipboardText(text: string)
which does the heavy lifting around clipboard without necessitating involvement of an additional HTML element.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions