White paper: Templates in web-to-print.  Free download

ITextPermissionsConfig Interface

A structure defining permissions for text elements.

example
{
    "defaultItemsConfig": {
        "text": {
            "textPermissions": {
                "allowChangeText": false,
                "allowChangeFontColor": false,
                "allowChangeShadow": false,
                "allowChangeStroke": false
            }
        }
    }
}

Properties

Optional allowChangeFont

allowChangeFont: boolean

Enables the Font name and Font style lists in the Top Toolbar. The default value is true.

Optional allowChangeFontColor

allowChangeFontColor: boolean

Enables the Color picker in the Top Toolbar for plain text. By default, the Color picker is enabled.

Optional allowChangeFontSize

allowChangeFontSize: boolean

Enables the Font size box in the Top Toolbar for plain text. The default value is true.

Optional allowChangeShadow

allowChangeShadow: boolean

Enables the Shadow button in the Top Toolbar. By default, this button is enabled.

Optional allowChangeStroke

allowChangeStroke: boolean

Enables the Stroke button in the Top Toolbar. By default, this button is enabled.

Optional allowChangeText

allowChangeText: boolean

Allows for changing the content and enables the Edit button in the context menu. The default value is true.

Optional allowChangeTextAlignment

allowChangeTextAlignment: boolean

Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default.

Optional allowChangeTextBIU

allowChangeTextBIU: boolean

Enables the Faux bold, Faux italic, and Underlined buttons in the Top Toolbar for plain text. These buttons are enabled by default.