Hello guys,
Could you please support me and guide, gow to set in CSS the default font family for component proudly named - RichTextArea. I tryed to use .richtextarea { font-family: Arial }, but always when I typing I see Times New Roman and need to manually change it by selecting a text and next select font in the top toolbar. Help!


RichTextArea content is in an
, so you cannot change it with CSS.

However, you can make it from Java code, just set the value of the component:

rta.setValue("<font face='Arial'>&#8203;</font>")

You need to have some content, otherwise it won’t work, so I’ve added a zero space character there.

Michael, thank you for your help!! I supposed there is another way to do that than .setValue() function.