Re: Detecting Drag and Drop on a RichTextArea

2013-03-20 Thread kim . mertens
I found a solution adopting http://stackoverflow.com/questions/10317644/how-to-make-gwts-richtextarea-detect-content-pasting-and-cutting-events IFrameElement iFrame = IFrameElement.as(richTextArea.getElement()); //listen for paste event addDropHandler(iFrame); /** * Add a listener for

Re: Detecting Drag and Drop on a RichTextArea

2013-03-19 Thread kim . mertens
I also like no register a listener for getting informed when an image is dropped into a RichTextArea (and inserted base64-coded). I have used something like : RichTextArea rta = new RichTextArea(); rta.addDropHandler(new DropHandler(){ @Override public void onDrop(DropEvent event) {

Detecting Drag and Drop on a RichTextArea

2009-03-06 Thread jasons
I'd like to perform some work whenever a user drags a link into a RichTextArea control. I don't need a full drag-and-drop framework here - all the browsers I've tried already implement link dragging, and the control deals with dropped links fairly well. I'd like to be able to detect the event