GWT - RichTextArea - ScrollTo
- by Yanick Rochon
If I have an RichTextArea like this :
RichTextArea rta = new RichTextArea();
rta.setHTML("<p id=\"foo\">Foo</p>....<p id=\"bar\">Bar</p>");
If I extend the RichTextArea class, how would be the proper way (cross-browser wise) to write a scrollTo() method?
Ex:
class RichTextAreaExt extends RichTextArea {
...
public native void scrollTo(String element) /*-{
// the underlaying DOMElement is an iframe, so....
}-*/;
...
}
Thanks!