O'Reilly logo

Vaadin 7 Cookbook by Ondrej Kvasnovsky, Jaroslav Holan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Restricting buttons in Rich text area

Vaadin provides a very useful component called RichTextArea. In this area, we can edit formatted text. The content is represented in HTML and it consists of two toolbars. Sometimes users don't need all the functions, for example in a simple web chat. Only basic functions such as bold, italic, and underline are sufficient. In those cases, it's better to use fewer buttons than those set by default. The editor then becomes clearer and easier for users. Sometimes less is more. In this example, we will learn how to do it.

This is the Rich text area with default buttons:

Restricting buttons in Rich text area

This is our target. We have restricted the number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required