Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: triggering paste?

Is there any way to trigger a paste in jQuery?

Or maybe a broader question: is there any cross-browser way to trigger a paste with Javascript at all?

like image 817
Benjamin Allison Avatar asked Apr 06 '11 00:04

Benjamin Allison


1 Answers

Getting data from the user's clipboard is a pretty big security risk (for the user). Zero Clipboard will get you part of the way there (requires Flash), although it will only let you mimic paste using what you've copied using their library.

http://code.google.com/p/zeroclipboard/

You won't find a cross-browser JavaScript or jQuery only solution, though.

like image 196
jnpdx Avatar answered Oct 21 '22 10:10

jnpdx