Details
-
Bug
-
Resolution: Fixed
-
Major
-
18.7.0
-
None
-
Integration
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce
- Edit a page with the BlockNote editor.
- Select a word in a paragraph, e.g. "second" in "first second third".
- Click the link button of the formatting toolbar: the link modal is pre-filled with the selected text as display text.
- Set a link target (e.g. the URL https://xwiki.org), expand the "Options" section and change the display text, e.g. to "2nd".
- Submit the link modal.
Actual result
The selected word is linked, but the link label is still "second": the display text typed in the link modal is ignored.
Expected result
The link label is "2nd", the display text typed in the link modal.
Notes
- Only the links created from a text selection, using the formatting toolbar, are affected. The links inserted with the /link quick action and the edited links use the display text.
- When the display text is left unchanged, the selected text should be linked in place, keeping its inline formatting (e.g. a bold part).
Attachments
Issue Links
- is caused by
-
XWIKI-24269 Improvements for the link insertion dialog
-
- Closed
-
- is related to
-
XWIKI-25738 Support links with generated labels in the BlockNote link modal
-
- Closed
-