Questions tagged [clipboard]
The clipboard is a software facility that can be used for short-term data storage and/or data transfer between documents or applications, via copy and paste operations.
clipboard
4,140
questions
0
votes
0
answers
25
views
Why does pasting an image into an SVG canvas only works if there are other elements present (like an SVG circle) in my webapp?
I am working on a map creation project in React. It consists of a 'canvas', which is an svg element.
On that canvas, you can add nodes, which are SVG circles, edges, which as SVG lines and finally you ...
2
votes
1
answer
72
views
How to write text in the clipboard in BOLD format using Javascript?
javascript:(() => {
navigator.clipboard.writeText("From : \n Info : \n Resp : ");
})();
I am trying to write predefined data in the clipboard directly in bold format whenever I ...
0
votes
0
answers
35
views
Checking contents of Office Clipboard VBA
I'm writing a program in Excel that takes multiple Publisher files and combines them into a single file for output.
My idea was, since Publisher doesn't have a built-in method to combine two files, to ...
1
vote
2
answers
44
views
Angular get data from clipboard
im using bellow function to get copied data from clipboard
onPasteData(section:string){
navigator.clipboard.readText().then(s =>
input = s
);
}
s holding bellow data line by line with line ...
0
votes
0
answers
17
views
navigator.clipboard.writeText(copyText.value) not work in mobile
I wrote a code to get param from php get method and copy it to clipboard in laptop and pc work fine, but I try many phones and it doesn't work, notice that if I use a btn to click on it's work but in ...
0
votes
1
answer
58
views
Rendering clipboard repeatedly
I have an application that uses delayed rendering of the clipboard to paste the current time. But: when the time was rendered once, it will always paste the same time, and not the updated time.
I ...
0
votes
0
answers
34
views
How to get emf image as input stream from system clipboard?
Copying an image in ChemDraw (vector graphics editor for molecular structures, smth like Inkscape) brings to System Clipboard an emf image what follows from lines CF_ENHMETAFILE and CF_METAFILEPICT in ...
0
votes
0
answers
35
views
Get a URL from Edge browser
I have an Edge browser open with one tab. I want to get the URL of the webpage into a variable in excel so I can create a hyperlink to it. I asked this question a couple years ago and received an ...
2
votes
0
answers
91
views
Black background of copied and pasted image Java Swing
I try to copy a molecule image in ChemDraw (it is like Incscape to draw molecules) and paste it to my Swing GUI. I use something like that.
import java.awt.*;
import java.awt.datatransfer.*;
import ...
0
votes
0
answers
83
views
TinyMCE: Cursor Does Not Move to Next Line After Inserting Content with <br> Tag Using mceInsertContent
I'm using TinyMCE for my rich text editor, and I'm performing clipboard operations to insert content into the editor using the mceInsertContent command. When I insert content that ends with a tag, ...
0
votes
1
answer
75
views
ClipboardJS - copy data from `data-clipboard-text` held in a separate element
In this snippet, I am using Clipboard.js to copy text from the a element, copying the data held in the data-clipboard-text attribute.
That works fine as shown here:
<!DOCTYPE html>
<html ...
0
votes
1
answer
24
views
How to give Mozilla FF clipboard permissions in cypress [duplicate]
I have a cypress test that includes checking that the copy button has copied value in an input field. The issue is I haven't found a good way to give clipboard permissions for the Mozilla browser as ...
0
votes
0
answers
38
views
C# Read from clipboard and save to variable [duplicate]
I try to get my clipboard (it will always be a 6 digit number, e. g. 123456 when the code is executed) content to be saved to a variable. However, the variable seems to be empty.
using System;
using ...
0
votes
1
answer
59
views
VBA Macro special pasting #VALUE! instead of the underlying Factset FDS value of the formula
When trying to paste the contents of a sheet into another workbook, the formulas aren't updating until I select an option for keeping the large amount of information on the clipboard pop-up.
I tried ...
1
vote
1
answer
71
views
Why is Clipboard.SetTextAsync not working on Android in .NET MAUI but works on Windows?
I am developing a .NET MAUI application where I need to copy text to the clipboard. The implementation works perfectly on Windows, but it fails to copy the text on Android devices. Below is the ...