0

I'm trying to use ZeroClipboard for my project, however it seems the samples provided are mostly about "Copy to" clipboard, what is I need the other way around "Copy from" method.

Anyone can share some code ideas on how to implement this?

Code:

public static native String getPastedText()/*-{
    var clip = new $wnd.ZeroClipboard.Client();

}-*/;
Matt Ball
  • 354,903
  • 100
  • 647
  • 710
quarks
  • 33,478
  • 73
  • 290
  • 513
  • I'm fairly sure you _can't_ read clipboard data using ZeroClipboard. http://stackoverflow.com/q/14821210/139010 – Matt Ball Sep 03 '13 at 20:17
  • Matt, I wonder why a site I saw can do this. I am not sure which library is it but looking at the page I can see ZeroClipboard.js – quarks Sep 03 '13 at 20:41
  • I'm going to have to give this one a `[citation-needed]`. Link, please? – Matt Ball Sep 03 '13 at 20:42

1 Answers1

1

You can't do this just using a default browser installation. And this is really a security requirement.

If this would be possible, can you imagine how much data could be stoled just using javascript?

John John Pichler
  • 4,427
  • 8
  • 43
  • 72