toolbarPanel.add(buildButton(Icons.editorIcons.Italic(), "Italic", false, new SystemPasteCommand("\\textit{ <text here> }")));
toolbarPanel.add(buildButton(Icons.editorIcons.Underline(), "Underline", false, new SystemPasteCommand("\\underline{ <text here> }")));
toolbarPanel.add(buildButton(Icons.editorIcons.FontColor(), "Color", false, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
DynamicColorSelectionDialog.get(new ColorSelectionHandler() {
@Override
public void onSelection(ColorSelectionEvent event) {
String color = event.getSelectedItem().substring(1);
int r = Integer.valueOf(color.substring(0, 2), 16);
int g = Integer.valueOf(color.substring(2, 4), 16);