RichTextArea rt = new RichTextArea();
rt.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
Window.alert("MouseDown!");
Window.alert("" +
event.getNativeEvent().getEventTarget());
}
});
rt.setHTML("<h1>Test</h1><p><input type=\"button\" name=\"name\"
value=\"+\"></p>");
Appears to work.
Cheers,
Dave
On Jul 12, 1:34 pm, Jan <[email protected]> wrote:
> Hi,
>
> I am using a GWT RichTextArea. The html code it displays contains also
> some buttons. Here is a simplified example:
>
> <div>
> <h1>Test</h1>
> <p><input type="button" name="name" value="+"></p>
> </div>
>
> Is there a way to connect the pressing of this button with a gwt
> event?
>
> Thanks for your help
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.