Questions tagged [copy-paste]

For issues relating to cut, copy, and paste operations.

The term "copy-and-paste" refers to the popular, simple method of reproducing text or other data from a source to a destination. It differs from cut and paste in that the original source text or data does not get deleted or removed. The popularity of this method stems from its simplicity and the ease with which users can move data between various applications visually – without resorting to permanent storage.

Source: Wikipedia

3477 questions
8
votes
1 answer

Paste image to a web page

I did some research for a wysiwyg editor and found ckeditor that seems to be nice however I need to be able to copy/paste an image to the editor. I found this web site that do exactly what I need http://pasteboard.co/ so its possible however I…
Yann Lebel
  • 675
  • 1
  • 7
  • 17
8
votes
3 answers

Tips to show similarities in files

In a project, I found some css files that "smell" like there are copy-pasted rules in them. I wonder what are your strategies for detecting copy-paste stuff in files. Just of curiosity i'd like to hear your tips and tricks for showing file…
Jesper Rønn-Jensen
  • 106,591
  • 44
  • 118
  • 155
8
votes
1 answer

Applescript from Mac App says "Expected end of line but found \U201c\"\U201d."

I am trying to perform a copy/paste for my to the the last active app, here's my code: NSString *appleScriptSource = [NSString stringWithFormat:@"\ntell application \"%@\" to activate\ntell application \"System Events\" to tell process…
Rasmus Styrk
  • 1,296
  • 2
  • 20
  • 36
7
votes
3 answers

TinyMCE: Copy-Paste from Google Docs

Folks, My company needs to support the following workflow: - There's rich content getting created in Google Docs (with simple formatting - bold/italic, as well as hyperlinks) - That content is then pasted into an internal CMS that uses TinyMCE.…
Alex Weinstein
  • 9,823
  • 9
  • 42
  • 59
7
votes
2 answers

Prevent copy/paste and right-click meant for textbox (email address)

I would like to prevent a user from either: Copy and pasting from the first textbox to the second Right-click and use the context menu to copy and paste from the first textbox to the second. This is not working. …
Susan
  • 1,822
  • 8
  • 47
  • 69
7
votes
4 answers

In Vim is there a corresponding change (c) command for paste (p)?

With insertions, it is very easy to both wipe out a word/section and insert over it, like so cw delete until end of word (with space) then go to insert mode ce delete until end of word (without space) then go to insert mode c3w delete until end of…
puk
  • 16,318
  • 29
  • 119
  • 199
7
votes
3 answers

iOS - detect when user copy to clipboard - [UIPasteboard generalPasteboard]

quick easy question while using a WebView with some text in it - the user can select a snippet of text from it and press a UIButton which I created - running the following action: -(IBAction)copyToClip { NSString *copyClip = [UIPasteboard…
chewy
  • 8,207
  • 6
  • 42
  • 70
7
votes
2 answers

How to copy and paste SVG node using jQuery

I have some SVG embedded into a web page and need to copy a particular SVG node (including it's children), then paste it back into the DOM. Only problem is, the SVG node doesn't appear after being pasted, which is probably because it's…
Steve
  • 3,483
  • 5
  • 21
  • 20
7
votes
0 answers

Line Breaks are Inserted when Copying CSS Rules from Chrome Developer Tools

I want to copy CSS rules from the Chrome (95.0.4638.54) Developer Tools, as I used to (until recently) but now there are line breaks added in between. Any fix? Example What I want when pasted (and used to happen): border: 0.1vmin solid…
7
votes
1 answer

wpf datagrid copy and paste what you see

I am using data grid in wpf, and it has copy and paste by default. I have a date time column and i used binding and String format to make it show it in the date time format i want. However, when i copy and paste, the pasted text becomes the…
Kev84
  • 827
  • 3
  • 15
  • 26
7
votes
1 answer

Paste into SSH terminal capitalizes last character and doesn't allow me to edit it

I'm running Terminal on my Mac and ssh'ing into a Linux host. I've had 2 issues around copying and pasting text into my Terminal: When I'm just running local Terminal commands on my Mac (not though ssh), I sometimes get weird characters around…
Dasmowenator
  • 5,505
  • 5
  • 36
  • 50
7
votes
1 answer

Paste Files from Clipboard with Cut or Copy

The .NET Clipboard class has methods to put files into the clipboard and also define if they should be moved or copied (cut/copy). But if I want to paste files that were copied into the clipboard, I see no way to find out if the file was cut or…
Lumo
  • 627
  • 6
  • 21
7
votes
1 answer

How to copy and paste by using Keyboard in python?

Also, are there any functions I can use keyboard to control in order to create a program more efficiently? Thanks
hkus10
  • 463
  • 3
  • 7
  • 9
7
votes
0 answers

How to enable gboard gif insertion/upload on webpages

Google's Android keyboard GBoard allows insertion of gifs in some apps, e.g. Hangouts. I would like to enable this functionality on a website as well. How do I communicate to Google Chrome, and then to the GBoard, that this gif upload is enabled on…
Michael Große
  • 1,818
  • 1
  • 16
  • 20
7
votes
3 answers

Clipboard Copy and Paste does not work in VMWare Player 12

i can copy and paste text and files between Virtuelle Maschine (Windows 7) and my local Windows 7. But I can't copy this what is in clipboard - for example between two displays the same program (on display in Virtuale Maschine and second display in…
Luk
  • 185
  • 1
  • 2
  • 10