Insert a Macro with the BlockNote Editor

Last modified by Eleni Cojocariu on 2026/10/08 14:39

Steps

To insert a Macro with the BlockNote editor:

  1. Type /macro and select "Macro" in the "slash menu".

    The slash menu of the BlockNote editor with /macro typed and the Macro entry highlighted

    Alternatively, select some text and click the Macro button of the formatting toolbar. The selection only serves to make the toolbar appear: it is replaced by the Macro, not wrapped in it. XWiki 18.6.0+ The Macro button was added to the formatting toolbar.

    The formatting toolbar of the BlockNote editor with the Insert a macro button highlighted

  2. Filter the list of Macros, select the one to insert, and confirm the selection.

    The Select Macro modal with the filter field, the selected Warning Message macro and the Select button highlighted

  3. Fill in the Macro content and the Macro parameters, then submit the Macro edit modal.

    The Edit Macro modal of the Warning Message macro with the Content field, the Title parameter and the Submit button highlighted

FAQ

How do I change a Macro I already inserted?

Select the Macro with a single click, then click the edit button of the formatting toolbar to reopen the Macro edit modal.

Related

Get Connected