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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.


Adam Kowieski
7 years ago Sep 11, 2015 12:13pm
Michael Tzukanov
7 years ago Sep 12, 2015 6:05am


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'>&#8203;</font>")

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

Adam Kowieski
7 years ago Sep 16, 2015 1:18pm