Help needed in dynamically changing the font color of a text area from the color menu. Existing attempts to change it have not been successful. Can someone provide assistance?
final ColorMenu fontColorMenu = new ColorMenu();
fontColorMenu.getPalette().addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
//textarea.getElement().getStyle().setColor("#"+event.getValue()); // Not working
//textarea.getElement().getStyle().setProperty("color", "#"+event.getValue()); // Not working
textarea.getElement().getStyle().setProperty("Color", "red !important"); // Not working
}
});