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
0
votes
2 answers

Errors with clipboard.js in React component?

I’m trying to use clipboard.js in a React component, and it causes my devserver to start failing with the Node error: ReferenceError: Element is not defined at Object.
user3802348
  • 2,502
  • 11
  • 36
  • 49
0
votes
0 answers

Understanding non-functioning Clipboard.js implementation with AJAX

In a simple Flask application I'm building, I have an endpoint/view that features a keyword search query field (and the results of that query, inserted via an AJAX call). When the user clicks Submit button, an AJAX POST request with the keyword is…
0
votes
2 answers

ClipboardJS with React, using document.getElementById()

Originally, I had it working fine. Then I did this and now I can't get it to work ClipboardField.js import React from 'react'; export default (props) => { return(
user2465134
  • 8,793
  • 5
  • 32
  • 46
0
votes
1 answer

Not working: Copy HTML signature to clipboard with Javascript

How can I make the "copy to clipboard" button work for an outcome of my HTML + Javascript? I've read different posts and tried this, but it isn't working for me:
0
votes
2 answers

clipboardjs does not work when assigning class with space

I have setup clipboardjs successfully. Now I am adding a framework to it for design purpose. It is all working fine only when I add a new class to the button called "small button" than it will not work anymore. Before I used a button it will work…
Snepix
  • 5
  • 1
0
votes
0 answers

copy html formatted text to clipboard with javascript on response from ajax call

I have a web page that makes an Ajax call to my server (using javascript) that returns html formatted text that I want to insert into the local clipboard so that the user can then paste (ctrl-v) it into either their email or calendar application. …
Simon Shaw
  • 175
  • 1
  • 10
0
votes
1 answer

How to use clipboard.js with Ajax? (data-clipboard)

I have Clipboard.js working fine on my test site, I can copy using data-clipboard as such. 0
hanzichi
  • 609
  • 2
  • 12
  • 22
1 2 3
9
10