Text Editor input

Text Editor inputs are WYSIWYG HTML editors, using TinyMCE.

Parameters
Parameter name Description
templates Optional, key of the textEditorTemplates property name of your model that holds predefined HTML templates
softBreaks When true, TinyMCE settings force_br_newlines and force_p_newlines will be set to false, while forced_root_block will be set to an empty string. As a result, breaking lines will not start new paragraphs
Example

A simple text editor input with predefined templates:

ticket_details:
    type: textEditor
    name: Ticket details
    parameters:
        templates: ticketDetails

This form input expects your model to have a textEditorTemplates property, having collection of objects with text and title properties.