How about post-processing the DOM?
Something like:
html.setHTML(content);
for (Element element :
html.getElement().getElementsByTagName(AnchorElement.TAG)) {
AnchorElement.as(element).setTarget("_blank");
}
On Saturday, October 24, 2015 at 1:16:22 AM UTC+2, Valavanur Man wrote:
>
> We need to display notes entered in a RichTextArea widget on a webpage.
>
> The notes or content of the RichTextArea are displayed in another page as
> HTML output. If the notes contain any HREF links, clicking on the link
> changes the webpage on the current tab. We would like to set the target of
> the HREF to be another browser/tab. Is there any way you control the
> behavior when HREF is embeded as part of HTML text?
>
> Appreciate your help!
>
> Thanks,
> Valavanur Man
>
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.