Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25734

The display text typed in the BlockNote link modal is ignored when creating a link from a text selection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 18.10.0-rc-1
    • 18.7.0
    • BlockNote
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Edit a page with the BlockNote editor.
      2. Select a word in a paragraph, e.g. "second" in "first second third".
      3. Click the link button of the formatting toolbar: the link modal is pre-filled with the selected text as display text.
      4. Set a link target (e.g. the URL https://xwiki.org), expand the "Options" section and change the display text, e.g. to "2nd".
      5. 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

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: