Hi, Did you get solution for your problem?

On Monday, 21 March 2016 at 19:16:23 UTC+5:30 Dhinakar wrote:

> Can anyone help me to copy the text to clipboard in a simple way and which 
> works on all browsers especially on Safari, Chrome and IE and with out the 
> need of flash or any other apps. Thanks in advance
>
>         public static native void 
> copyFrom(com.google.gwt.user.client.Element element) /*-{
>   $wnd.window.clipboardData.setData('text', element.innerText);
> }-*/;
> public static native void pasteTo(com.google.gwt.user.client.Element 
> element) /*-{
>   $wnd.window.clipboardData.getData(element);
> }-*/; 
> This code only works on IE and returns an exception on Chrome.
>
> I need to process this event on a button click.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/84f249f5-e548-407e-bfde-cfd42b2f5cc4n%40googlegroups.com.

Reply via email to