The following code works fine if i do HTML = new HTML("<a href=# onclick=window.test()>Hi 123I</a>'); ( Meaning HelloWorld gets Printed )
But the same HTML from inside a RichTextArea does not get printed .
I am doing missing something here
MyPanel
{
RichTextArea ss = new RichTextArea ();
ss.stHTML("<a href=# onclick=window.test()>Hi 123I</a>");
public static native void exportMyFunction2(MyPanel x) /*-{
$wnd.call = function () {
x.@myPackage.MyPanel::test()();
}
}-*/;
public void test()
{
GWT.log("Hello World");
}
}