This is a very first pass at clipboard.js.
It seems to work fine on Firefox.
Things we need to consider:
- clear the selection after copy
- add messages for success, error, etc.
- doesn't seem to work on IE 10
- doesn't seem to work on Chrome either; throws
Discontiguous selection is not supported.
/CC @twbs/team
Fixes #17736 (closed).
Closes #17340 (closed) #17341.
PS. if anyone can fix any of the todo's please leave a comment after you push so that I don't accidentally force push the branch.