@Override
protected void onFirstShowPage() {
super.onFirstShowPage();
final PScrollPanel scroll = new PScrollPanel();
final PRichTextArea richTextArea = new PRichTextArea();
final PRichTextToolbar richTextToolbar = new PRichTextToolbar(richTextArea);
richTextArea.addValueChangeHandler(new PValueChangeHandler<String>() {
@Override
public void onValueChange(final PValueChangeEvent<String> event) {
System.err.println(richTextArea.getHTML());
}
});
final PFlowPanel flow = new PFlowPanel();
flow.add(new PLabel("Edit rich content"));
flow.add(richTextToolbar);
flow.add(richTextArea);
flow.add(buildCustomToolbar(richTextArea));
scroll.setWidget(flow);
examplePanel.setWidget(scroll);
richTextArea.setWidth("100%");
}