Skip to main content

template

This type allows to configure templates which are inserted into the editor.

Attributes:

  • includeTextBlocksInTemplate: Defines whether the text blocks which are included in a template are selected by default, i.e. whether they are inserted together with the template or whether the user has to select them explicitly. The default value is true.

  • templateNumberFormat: Defines the format of numeric variables, i.e., integer (number) or decimal (fixed-point number), for the placeholders in text templates. The default value is number.

    The most important elements are:

    • 0: Always show a digit in this place, if there is no digit in this position, 0 is shown.
    • #: Is displayed only, if the number has a digit in this position.
    • .: Decimal separator
    • ,: Internal grouping separator for integer/decimal positions

    For example 00.## as an attribute value will always show two digits before the decimal separator and show up to two digits after the decimal separator, depending on how many are present for decimal numbers. If the number has less than two digits before the decimal separator, the positions are filled with zeros, e.g. 5 is displayed as 05.