I had to implement a copy to clipboard functionality for our Control Panel which lists Orders. Since I’m a total enemy of flash I pursued a solution suitable for my needs and here it is. This is based on http://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript but I removed most of the styling and simply put the textarea outside of the viewport….
Angular & Copy to Clipboard
Veröffentlicht am