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
- Edit a page with the BlockNote editor.
- Select a word.
- Hover the "Create link" button of the formatting toolbar: its tooltip says "Create link" and "Ctrl+K".
- 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
- relates to
-
XWIKI-23927 Add the possibility to add link types by extension in Blocknote
-
- Closed
-