Wiki source code of BlockNote Link Options

Last modified by Eleni Cojocariu on 2026/11/25 11:29

Show last authors
1 The link modal of the BlockNote editor opens when you insert or edit a link, under the title "Insert link" or "Edit link". Which of its fields are shown depends on the selected link type. Click "Insert" (or "Update") to apply the link, or "Cancel" to leave the content as it was.
2
3 {{image reference="link-modal.png" size="large" alt="The Insert link modal with the Page link type selected, the Page reference field, and the expanded Options group showing Display text, Query string and Anchor" caption="The link modal, with the Page link type selected and the Options group expanded"/}}
4
5 |=Field|=Link type|=Description
6 |Link type|All|The kind of target: "Page", "Attachment", "E-mail" or "URL". When you edit a link to a path, to a UNC path, or to a kind of target the modal doesn't support (such as an interwiki link), the list also offers that kind, and a single field holds its address, so that the link keeps its kind.
7 |Page reference|Page|The reference of the target Page, picked from the suggestions. Leave it empty to link to the current Page, or, with an "Anchor", to one of its sections.
8 |Attachment reference|Attachment|The reference of the target Attachment, picked from the suggestions.
9 |E-mail address|E-mail|The address to send the message to.
10 |URL|URL|The address to link to. An address that starts with a host name, such as ##www.xwiki.org## or ##localhost:8080/xwiki##, is completed with ##https:~/~/## when you leave the field. Any other address without a scheme, such as ##/xwiki/bin/view/Main/##, ##../docs##, ##?key=value## or ##~#anchor##, is kept as typed, and the link is then edited as a path link.
11
12 {{version since="18.10.0RC1"}}The reference of a Page or an Attachment is saved relative to the edited Page: the parts they have in common, such as the wiki, are left out.{{/version}}
13
14 The "Options" group is collapsed by default. It always offers the "Display text", the text shown in place of the link. {{version since="18.10.0RC1"}}Leave it empty to have the text generated from the target, for example the name of the target Page: the link is then saved without a text of its own, and its text follows the target when you change it. When you edit such a link, the field is empty and shows the generated text as its placeholder. A text you type is always kept, even when it is the same as the generated one.{{/version}}
15
16 The other options depend on the link type:
17
18 |=Option|=Link type|=Description
19 |Query string|Page, Attachment|The parameters appended to the target address, such as ##key1=value1&key2=value2##.
20 |Anchor|Page|The identifier of a section of the target Page, such as ##HSectionTitle##.
21 |Message subject|E-mail|The subject line of the message.
22 |Message body|E-mail|The text the message opens with.

Get Connected