copy2clipboard
v1.0.0
Published
HTML5 safe way to allow CTRL-C
Downloads
11
Readme
copy2clipboard
Copy to the clipboard without using any flash.
You can populate any content into the clipboard when the user presses "CTRL-C".
It basically attaches to the "CTRL" key events and creates a hidden, selected textarea. Inspired by Trello.
Install
npm install copy2clipboard --save
Use
var ClipBoard = require("./clipboard.js");
var clip = new ClipBoard();
clip.set("fancy clipboard"); // set any content
Test it
License
MIT