Rich-text toolbar
To deploy a rich-text toolbar, you define it as a class and then assign the class to a field.
Defining a toolbar class
You can deploy customized rich-text editors that have certain controls for marking up text. For example, the following class provides only the boldface, italics, underline, and hyperlink buttons.
Associating a toolbar class with a rich-text field
You associate a customized rich-text editor with a text field using the @ToolUi.RichText annotation.
import com.psddev.cms.db.Content; import com.psddev.cms.db.ToolUi; public class Article extends Content { @ToolUi.RichText(toolbar=CustomRichTextToolbar.class) 1 private String body; }
Applies the toolbar class created in Defining a toolbar class to the rich-text field |

The following classes have controls which can be used in your customized rich-text toolbar's getItems
method: