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

Ctrl+K doesn't open the BlockNote link modal, although the Create link button advertises it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 18.10.1
    • 18.10.0-rc-1
    • BlockNote
    • None
    • Unknown

    Description

      The "Create link" button of the BlockNote formatting toolbar shows the keyboard shortcut Ctrl+K (Cmd+K on macOS) in its tooltip, but pressing it doesn't open the link modal.

      Steps to reproduce

      1. Edit a page with the BlockNote editor.
      2. Select a word.
      3. Hover the "Create link" button of the formatting toolbar: its tooltip says "Create link" and "Ctrl+K".
      4. Press Ctrl+K.

      Actual result

      Nothing happens: the link modal doesn't open.

      Expected result

      The "Insert link" modal opens, as when clicking the "Create link" button.

      Notes

      • The hint comes from the secondaryTooltip of CustomCreateLinkButton (xwiki-platform-node/src/main/node/editors/blocknote-react/src/features/links/CustomCreateLinkButton.tsx), formatted from BlockNote's "Mod+K" dictionary entry, but nothing binds the shortcut: neither the XWiki button nor BlockNote 0.57 registers a key handler for it.
      • The tooltip has been there since the BlockNote packages were moved to XWiki (XWIKI-23699, 18.0.0); only 18.10.0-rc-1 was checked.
      • The BlockNote user documentation mentioned the shortcut; it was removed from https://www.xwiki.org/xwiki/bin/view/documentation/xs/user/base/page/edit/blocknote-editor/insert-link/ when documenting the link modal changes of XWIKI-23927.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: