paste

Override iPhone copy menu captions on a long-press?

Is it possible to override the captions in the "Copy" menu when the iphone user long-presses on some text? Essentially, I'd like to change the text to something like "Create a Note" instead of "Copy". Is that possible? ...

jQuery Ajax: Copy - Paste thingy

Hi everyone, I have a form where a check an input field for its value and then i do an Ajax call using the typewatch plugin ( a small little thing which detects that the user has stopped typing after a predefined interval ). It works great. As this field is a "coupon discount" in an order form, the value could be entered by copy pastin...

TinyMCE BBcode plugin breaks text format on paste

Hi all, I have a problem with the BBcode plugin of TinyMce. If i paste a normal text took from a site like this (i took it from lipsum.com): Code: "The standard Lorem Ipsum passage, used since the 1500s "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut eni...

Firefox adds <br> when paste from Word in TinyMCE

I'm currently using TinyMCE 3.3 on a drupal site, with an annoying problem. Using both "paste from word"-button or "Force cleanup on paste" in Firefox cause TinyMCE to insert line-breaks in my paragraphs where the line would have ended in Word. In IE, I do not have this problem. When viewing the source code in the editor, it doesn't ...

Provide "Paste Link" Functionality in C# Winforms App

I would like to add Copy-Paste Link functionality to an application. The application replaces a complex Excel workbook. I would like to be able to copy tables, text, and charts from the application and use Paste Link in MS Word. For the uninitiated: With Excel, when you use Paste Link for the tables, text, charts, etc. the items updat...

Clean Microsoft Word Pasted Text using JavaScript

I am using a 'contenteditable' <div/> and enabling PASTE. It is amazing the amount of markup code that gets pasted in from a clipboard copy from Microsoft Word. I am battling this, and have gotten about 1/2 way there using Prototypes' stripTags() function (which unfortunately does not seem to enable me to keep some tags). However, even...

Winforms MaskedTextBox - Reformatting pasted text to match mask

I have a MaskedTextBox control that, in our case, is collecting social insurance (tax) numbers (without a ValidatingType though since the string representation including the mask literals). A social insurance number is 3 groups of 3 digits separated by dashes. Sometimes spaces may be typed or entered instead of the dashes. The configura...

Copy files from search tab in eclipse 3.4

I just want to copy list of files displayed in eclipse search tab, When i try using right click copy and paste into some folder it does not work.It actually copies the file location rather than the file itself ...

In WinForms Application control + C is not doing a copy on my rich text box.

I added a menu with short cut keys for copy and past (Control+C & Control+V) on a windows forms application. The application has a single richtextbox control. The events for the menu items call RichTextBox.Copy and RichTextBox.Paste but I can't get the short cut keys to work. Control+c & +v do nothing. Is there a step I am missing? ...

django app fields - copy and paste data

what field in the django models class should be used if the type of data (text/images/html) is unknown? i'm looking for a field that can handle copy and pasted html code, images, text, etc. ...

How to find all ways to initiate a paste command in MS Word?

I'm working on an add-in for MS Word and I'd like to create a custom handler for pasting (EditPaste is the built-in command). I can see that, by default, Ctrl+V and Shift+Insert are bound to EditPaste, and there are buttons which also initiate a paste. Unfortunately, some keyboards have additional buttons/combinations which result in a ...

Vim paste behaviour

Hi, I am a bit of a beginner when it comes to Vim and it is currently irritating me in many ways. One of which is the following: Say i have the following text in a file one two three four dog frog log mog and I have used visual mode to select the number words (4 lines) if I then use P to paste at the 'd' in dog i ge...

Pasting HTML into IE8

Hi Everyone, One of our products uses a Javascript Rich text editor, which has the ability to accept pasted HTML/Word and clean it up so the html is XHtml valid and presentable. This has been working fine for a few years, but recently we've been having complaints about pasting; from users with IE8. It turns out that regardless of sett...

Paste from clipboard in vim script

I want to write a vim function that includes pasting from the clipboard (windows if it matters) I think it should be something like function MyPastingFunc() "+p "paste from clipboard "do more stuff endfunction Of course the "+p is just a comment in the .vim file. How can I make this work? ...

How can I guarantee full macro expansion of a parameter before paste?

I have a general macro: #define mSwitch( Root, Case ) Root##_Case_##Case #define mSpecialDisplay( what, Val ) mSwitch(mSpecialDisplay,what)(Val) #define mSpecialDisplay_Case_Int(Val) ...do stuff #define mSpecialDisplay_Case_Float(Val) ...do stuff ...more special cases how do I guarantee that the variable Case is fully expanded ...

javascript catch paste event in textarea

Hi, I currently have a textarea which I requires control over text that has been pasted in, essentially I need to be able to take whatever the user wants to paste into a textarea and place it into a variable. I will then work out the position in which they pasted the text and the size of the string to remove it from the textarea, The...

Strip HTML style attributes in dijit.Editor (onPaste)

Is there anyway to make the dijit.Editor strip HTML style="" attributes from pasted content? If I copy text from another site, it copies it's font-size, color, etc and puts it into span tags. I would prefer to only strip styles when pasting. I already have a tried-and-tested regex to replace the content, but I don't know how to hook i...

How do I use pylons (paste) webtest with multiple checkboxes with the same name?

Suppose I have a form like this: <form id='myform'> Favorite colors? <input type='checkbox' name='color' value='Green'>Green <input type='checkbox' name='color' value='Blue'>Blue <input type='checkbox' name='color' value='Red'>Red <input type='submit' value='Submit'> </form> How do I use webtest's form library to t...

contenteditable pasting image from clipboard

Am using jwysiwyg and customizing it quite a bit. Wondering if anyone has any links or info on how to support pasting images from the clipboard in a contenteditable element. Many RTEs support this so it has to be doable. ...

Not able to recieve WM_COPY message

I have created an edit box window in ATL derived from CwindowImplBase. I have added Message handlers on WM_COPY ,OnCopy Now when I do Ctrl+C , it doesnot go into OnCopy When I do Ctrl+x it goes into OnCopy Any idea why its working for Ctrl+x and not ctrl+c. It is supposed to work for ctrl+c ...