macro

Defines a macro to be added to the toolbar 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 entry to be added to the menu of the macro button to in the field's toolbar. The step sub-element defines the action to be performed by the macro and the description sub-element defines the menu entry's label. An optional keystroke sub-element allows a keyboard shortcut to be associated with the macro, and an optional icon sub-element defines an icon to be displayed next to the entry label.

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

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