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 richTextArea
>
> On Wed, Oct 26, 2011 at 9:55 AM, Derek <derek...@gmail.com 
> <javascript:>>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() {
>>
>>         @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...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>

-- 
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