BlockNote Link Options

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

Reference

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.

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
The link modal, with the Page link type selected and the Options group expanded

FieldLink typeDescription
Link typeAllThe 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.
Page referencePageThe 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.
Attachment referenceAttachmentThe reference of the target Attachment, picked from the suggestions.
E-mail addressE-mailThe address to send the message to.
URLURLThe 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.

XWiki 18.10.0+ 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.

The "Options" group is collapsed by default. It always offers the "Display text", the text shown in place of the link. XWiki 18.10.0+ 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.

The other options depend on the link type:

OptionLink typeDescription
Query stringPage, AttachmentThe parameters appended to the target address, such as key1=value1&key2=value2.
AnchorPageThe identifier of a section of the target Page, such as HSectionTitle.
Message subjectE-mailThe subject line of the message.
Message bodyE-mailThe text the message opens with.

FAQ

What happens if I change the link type of an existing link?

The fields of the previous type are replaced by those of the new type, and the link points at the new target once you submit the modal.

Related

Get Connected