getLayout().getUI().addActionHandler(actionHandler);
getLayout().addComponent(createRichTextArea("InMainLayout"));
VerticalLayout panelLayout = new VerticalLayout();
panelLayout.setMargin(true);
Panel panel = new Panel("RTA Panel", panelLayout);
panel.addActionHandler(actionHandler);
panelLayout.addComponent(createRichTextArea("InPanel"));
getLayout().addComponent(panel);
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);