Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
RichTextArea
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!
Adam
Hi,
RichTextArea content is in an iframe, 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'>​</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.