Global variables for formats (white text)

Build 1501 on 14/Nov/2017  This topic last edited on: 2/Sep/2016, at 09:26

You can put the following variables within the <Dict> node of the EditorialConfig configuration file. For instructions, see Adding or overriding variables in your EditorialConfig.

Find the actual values of such variables in EditorialConfig item in EdAdmin4, the Application Configuration > Client Applications, searching for EditorialConfig. The data is common for all titles in the system.

Should you need to specify different values of variables for different typographies, look for instructions at the Typography-dependent overridable variables.

Variable

Type

Default value

Comment

glbReverseFormatSuffix

string

"-W"

The global variable for the suffix of the special "white text" formats.

In a multi selection, requires an outer box to toggle black or transparent color and also to toggle special "white" formats/normal formats on article elements

In a single selection of a frame, toggles black or transparent color and toggle special "white" formats/normal formats on article elements (if there's already a black box under selection, it won't work well)

This assumes you create pairs of formats, e.g. body and body-W, head and head-W etc.

If affects the behavior of the scripts ReplaceArticle and ToggleBlackStyle.