Changes by Marius Dumitru Florea on 19/Nov/26 14:06
Resolution:
Fixed
Status:
OpenClosed
1 comment
Marius Dumitru Florea on 19/Nov/26 14:06
Implemented in the BlockNote editor (no change to the link modal itself):
Creating a link from a selection: the link target is pre-filled, in addition to the display text, with the page named after the selected text, relative to the edited page. The page search box being focused when the link modal opens, the pages matching the selected text are suggested right away, and the link can be submitted as is to link to a page named after the text, whether it exists or not.
Choosing Link to... in the link suggestion menu (slash menu Link item or [[ trigger): the link target is pre-filled the same way with the typed query. The display text is left empty, so that the link label is generated from the target.
Nothing is pre-filled when the text is empty or spans several lines (e.g. a selection of several blocks).
To link to the current page (or one of its sections) from a selection, the user now has to empty the pre-filled page reference.
Tests: unit and component tests for both entry points, an end-to-end component test through the link modal, and the LinkIT functional tests updated accordingly.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.