Simple module exposing copy(input: text)
function that would try to use execCommand with fallback to IE specific clipboardData
interface and finally, fallback to simple prompt with proper text content & 'Copy to clipboard: Ctrl+C, Enter'
copy(input: text)
- tries to copy text to clipboard.
Works everywhere where there's prompt
available. Works best (i.e. without additional keystrokes) in Chrome and, supposedly, IE. FF support to come soon-ish.
Note: not working on IOS atm