Enhanced Rich Text Editor for Flow is an extended version of Vaadin Rich Text Editor

Usage

Enhanced Rich Text Editor for Flow is an extended version of Vaadin Rich Text Editor with more functionalities like tab-stops, non-breaking space, rulers, customizing toolbar buttons and read-only sections.

Tabstops

Tabstops can be set in UI by clicking on horizontal ruler, on top of the editor. There are 3 tabstop possible directions: Left, Right and Middle.

  • When Direction set to Left: then left side of text will be aligned to right side of tab stop (>text)
  • When Direction set to Right: then right side of text will be aligned to left side of tab stop (text<)
  • When Direction set to Middle: then text will be centered to tab stop (te|xt)

When you click on ruler left tabstop will appear, then if you click on left tabstop it will change to right tabstop, and if you click on right tabstop it will change to middle tabstop. It is also possible to set tabstops programmatically by using tabStops property of editor.

Non-breaking space

To add a non-breaking space where the caret is located, press shift+space.

Customizing toolbar buttons

You can use setToolbarButtonsVisibility to show/hide the toolbar buttons. For example, the following piece of code hides Image and Link buttons.

Adding custom toolbar buttons

Instantiate normal Buttons and use rte.addCustomButtons(button1,button2,...); to add them to editor's toolbar.

Placeholders

See demo for more details.

Client-side implementation

This is the server-side (Java) API for Vaadin Platform for the vcf-enhanced-rich-text-editor component. Looking for the client-side version? It can be found here: https://vaadin.com/directory/component/vaadin-component-factoryvcf-enhanced-rich-text-editor

Vaadin Pro

This component is available in the Vaadin Pro subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: Pricing

Install

Link to this version
StableReleased 25 August 2021CVAL 3.0
Framework Support
Vaadin platform 10+
Browser Compatibility
Install with
Release notes - Version 2.4.2

Version 2.4.2

  • Fix issue with scrollbar not appearing correctly when using setMaxHeight.