Wiki source code of Insert a Macro with the BlockNote Editor
Last modified by Eleni Cojocariu on 2026/10/02 09:11
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | To insert a Macro with the [[BlockNote editor>>xwiki:documentation.xs.user.base.page.edit.blocknote-editor.WebHome]]: | ||
| 2 | |||
| 3 | 1. Type ##/macro## and select "Macro" in the "slash menu".((( | ||
| 4 | {{image reference="slash-menu-macro.png" size="medium" alt="The slash menu of the BlockNote editor with /macro typed and the Macro entry highlighted"/}} | ||
| 5 | |||
| 6 | 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. {{version since="18.6.0RC1"}}The Macro button was added to the formatting toolbar.{{/version}} | ||
| 7 | |||
| 8 | {{image reference="insert-macro-toolbar.png" size="large" alt="The formatting toolbar of the BlockNote editor with the Insert a macro button highlighted"/}} | ||
| 9 | ))) | ||
| 10 | 1. Filter the list of Macros, select the one to insert, and confirm the selection.((( | ||
| 11 | {{image reference="macro-selector-modal.png" size="large" alt="The Select Macro modal with the filter field, the selected Warning Message macro and the Select button highlighted"/}} | ||
| 12 | ))) | ||
| 13 | 1. Fill in the Macro content and the Macro parameters, then submit the Macro edit modal.((( | ||
| 14 | {{image reference="macro-edit-modal.png" size="large" alt="The Edit Macro modal of the Warning Message macro with the Content field, the Title parameter and the Submit button highlighted"/}} | ||
| 15 | ))) |