Questions tagged [clipboard-interaction]
43 questions
0
votes
2 answers
What is the equivalent code for navigator.clipboard.readText() in angular
navigator.clipboard.readText()
.then(text => {
// `text` contains the text read from the clipboard
})
.catch(err => {
// maybe user didn't grant access to read from clipboard
console.log('Something went wrong', err);
});
above…

Midhilaj
- 4,905
- 9
- 45
- 88
0
votes
2 answers
Clipboard managers pasting in F# Interactive
I have tried a few clipboard managers and two of the best (Ditto and Ethervane Echo) paste on an open F# Interactive window when I am trying to paste on the Editor. Others, like ClipMate (not free) paste on the Editor window. Is there a way to force…

Soldalma
- 4,636
- 3
- 25
- 38
0
votes
1 answer
How do I put a string in the paste buffer using javaScript in meteor?
I am currently building a tree based discussion form. Each post or node in the tree has a unique Id and a button "getURL" which supplies a URL which when navigated to provides a view rooted at that given node.
At the moment the getURL button opens a…

kpie
- 9,588
- 5
- 28
- 50
0
votes
1 answer
Copy text from a cross-domain iframe with javascript or flash or anything else
How can I copy a text from a cross-domain iframe and paste it in a textarea of my main page?
I can use javascript, swf or anything.
Some user-interaction is expected.

Lockito Marks
- 1
- 1
0
votes
2 answers
In QMessageBox, how do I add to the text copied by Ctrl-C?
Using Qt, C++ on Windows, Ctrl-C copies a selection of text that includes the title, message, and so forth from a QMessageBox. I have added some additional fields and would like to add some custom text to the information copied from the standard…

Mike
- 3,084
- 1
- 25
- 44
0
votes
1 answer
Preventing what was/were previously copied on to my clipboard from appearing on R Console when using R
I am having some problems with my clipboard contents when using R. When I run my scripts/commands in tinn-r, very often I would get something that I had ran earlier pasted onto my R Console instead of the command that I have just selected.
To get…

Bazon
- 13
- 4
0
votes
1 answer
clojure (add-watch) not notifying when changes are made on the clipboard
I'm writing a small tool in clojure and want to know when there's been a change on the clipboard. Here's a simplified version of what's going on.
(:import java.awt.Toolkit)
(:import (java.awt.datatransfer Clipboard
…

Sawin
- 1
0
votes
0 answers
Xsel behavior on OS X
Is there a way to get the selected text in OS X like the app xsel does in Linux? I've searched here and the pbpaste is equal to xsel --clipboard, because the user need to execute ⌘+C to copy the text to clipboard. But similar to the xsel, just…

gustavosobral
- 13
- 4
0
votes
1 answer
How do I make sure only one font and font size is used in a text field?
The default settings of a text field allow content of a different font and font size to be pasted into the field. How do I make sure that pasted content is converted to use a specific font and font size, i.e. the one I choose as default for the…

z--
- 2,186
- 17
- 33
0
votes
1 answer
How to close the clipboard ressource in C#?
Below is the code how I put a text string into the Windows Clipboard. I am looking for a command to close the clipboard resource immediately after so that it is not locked anymore by the app. Do you know how to close the clipboard ressource…

Guido
- 926
- 2
- 10
- 19
0
votes
2 answers
jQuery zClip copy to clipboard, for multiple links in bootstrap dropdown?
If this cant be done for cross-browser, then any comments would be much appreciated.
What I am trying to achieve is multiple "copy to clipboard" links on my page like this for example...

Joshc
- 3,825
- 16
- 79
- 121
-1
votes
1 answer
Incomplete paste in a file (using cat) when copy selection from terminal
I am trying to copy output from the Mobaxterm terminal in a file in Ubuntu 20.4 running on Win 10 - WSL 2.
Steps I perform:
I select the lines I want to copy.
cat > file
Paste (with Middle-Click, Shift-Ins, Right click menu & Paste)
Ctrl-D to…

Claudiu Cruceanu
- 135
- 1
- 1
- 10
-1
votes
1 answer
cross browser jquery code to copy to clipboard?
jquery or JavaScript code for copy content of an element to clipboard is very important as far as I think. Because I needed it for my project here and I spend two-three days just for it. I had done with zeroclipboard, but very inconvenient and…

Harsimrat Singh
- 9
- 1
- 2