Issue Feature Closed

#21806htmlArea RTE: Configuring custom items in the block formatting drop-down list

Stanislas Rolland 12/05/09, 23:48 updated 10/02/18, 12:41

Description

The feature adds three PageTSConfig options to configure the block formatting drop-down list.

Adding a class on formatted blocks:

buttons.formatblock.items.[item-name].addClass
string
A class name to be assigned to the blocks whenever the item is applied to selected text.

Adding custom items to the block formatting drop-down list:

buttons.formatblock.addItems
list of id-strings
List of options to be added to the block formating drop-down list.
Each of the added items should be configured.

Configuring a custom item to be added to the block formatting drop-down list:

buttons.formatblock.items.[item-name].tagName
string
A tag name to be assigned to the block elements whenever the (custom) item is applied to selected text.
The value of this property must be equal to one of the standard block element types.
[item-name] must not be a standard block tag name.

Other properties applicable to standard items also apply to custom items (addClass, label, hotKey, etc.).

Extended options:

buttons.formatblock.orderItems
The list may also contain custom items as specified by the buttons.formatblock.addItems property.

(issue imported from #M12943)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.