macro

Defines a macro to be added to the Content Studio style bar of the rich text field defined by this element's parent field element. This element only has any effect if specified as the child of a rich text field (a basic field where mime-type is set to application/xhtml+xml).

Inserting this element as the child of a rich text field element causes an additional button to be displayed in the field's Content Studio style bar. The icon sub-element defines the appearance of the button, the step sub-element defines the action to be performed by the macro and the description sub-element determines the button's tool-tip text. An optional keystroke sub-element allows a keyboard shortcut to be associated with the macro.

macro buttons and style-class buttons appear in the style bar in the same order as they appear in the interface-hints resource.

Syntax
<macro
    name="..."
  >
    <icon>...</icon>
    
    <step/>
    
    <keystroke>...</keystroke>?
    <description>...</description>?
  </macro>
Attributes
name="..."

The name of the macro. The name must be unique among all macro and style-class names in the file. The name may only contain English alphanumeric characters: no spaces, punctuation marks or special characters of any kind are allowed.