Questions tagged [clipboard.js]

Clipboard.js is a modern approach to copy text to clipboard. It doesn't depend on Flash. It has no dependencies. And it's just 2kb gzipped.

Copying text to the clipboard shouldn't be hard. It shouldn't require dozens of steps to configure or hundreds of KBs to load. But most of all, it shouldn't depend on Flash or any bloated framework. That's why clipboard.js exists.

137 questions
4
votes
2 answers

copying & selecting a span programmatically in Javascript (with clipboard.js)

Context The real free software (GPLv3) application (motivating this question) that I am coding is the MELT monitor on github (FWIW, I am at commit 56a83d358d3966eddb55... on February 11th, 2016). It is on Linux/x86_64/Debian, Firefox/44,…
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
4
votes
2 answers

How to copy using clipboard.js with dynamic content and triggers

After a click on .fw-code-copy-button I would like to copy source code from it's nearest container. .fw-code-copy-button-s are created dynamically, after user click dedicated "view source" button. Html for example button:
Dariusz Sikorski
  • 4,309
  • 5
  • 27
  • 44
3
votes
2 answers

vue-clipboard2 not working inside bootstrap-vue modal

I have used the vue-clipboard2 plugin inside the bootstrp-vue modal. But the text is not copying. Then I tried to copy to clipboard with vanilla js inside the bootstrap-vue modal. But the text is not copying. Anyone can do figure out what's the…
SUHAIL KC
  • 361
  • 4
  • 10
3
votes
2 answers

clipboard.js: Illegal Constructor errors occuring on JavaScript API

I'm trying to run a Copy URL event using clipboard.js. I have it installed on my server and the reference to clipboard.js is there in my code. So I have this in my footer: