|
| Summary: |
The display text typed in the BlockNote link modal is ignored when creating a link from a text selection |
| Issue Type: |
Bug |
| Affects Versions: |
18.7.0 |
| Assignee: |
Unassigned |
| Components: |
BlockNote |
| Created: |
12/Nov/26 10:20 |
| Priority: |
Major |
| Reporter: |
Marius Dumitru Florea |
| 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).
|
|