Wiki source code of Insert a Macro with the BlockNote Editor
Last modified by Eleni Cojocariu on 2026/11/25 11:29
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
15.12 | 1 | To insert a Macro with the [[BlockNote editor>>xwiki:documentation.xs.user.content-edit.blocknote-editor.WebHome]]: |
![]() |
1.1 | 2 | |
![]() |
7.1 | 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 | |||
![]() |
12.1 | 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.1 | 7 | |
![]() |
1.1 | 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 | ))) | ||
![]() |
7.1 | 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 | ))) |

