paranoiabla@... <paranoiabla@...> writes:

> 
> 
> I have the same problem. I can't drop into an iframe :( On Monday, August 
6, 2012 10:36:58 PM UTC+3, GWT Kid wrote:
> is there a solution for this ? How do we do drag and drop in 
richTextAreaOn Wed, Oct 26, 2011 at 9:55 AM, Derek <derek...-
re5jqeeqqe8avxtiumw...@public.gmane.org> wrote:I'm trying out some of the 
fun drag-and-drop stuff in GWT. My current
> attempt is to drag a file into a richtextarea, but nothing seems to be
> working correctly. It works fine if I use a FlowPanel or some other
> GWT widget, but not a RichTextArea despite it have an addDropHandler
> method.
> Anyone have any experience with this?
> My code in onModuleLoad:
> DropHandler drop = new DropHandler() {
>          <at> Override
>         public void onDrop(DropEvent event) {
>                 event.preventDefault();
>                 String data = event.getData("text");
>                 GWT.log("text is "+data+" and there are
> "+numFiles(event.getDataTransfer())+" files");
>         }
> };
> RichTextArea rt = new RichTextArea();
> rt.addDropHandler(drop); // never called even after drag-and-dropping
> a file on the rt
> RootPanel.get().add(rt);
> --
> You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
> To post to this group, send email to google-we... <at> googlegroups.com.
> To unsubscribe from this group, send email to google-web-
toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.
> 
> 
> 
> 
> 
> 
> 


Did you find a solution?  I'm having the same problem.  I've tried it using 
JSNI too, it seems to get a few events then stops.  How did you solve this?

-Dave


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to