slash-editor
Components

Link Editor Popover

Inline link create/edit popover with href input, open, and remove, driven by useLinkEditor.

Installation

bunx --bun shadcn@latest add @slash-editor/link-editor-popover

Keyboard shortcut

Mod-k (⌘K on macOS, Ctrl+K elsewhere) opens the popover over a text selection, or for the link under the cursor. With nothing to link, the key falls through to any other handler on the page. Change or remove the binding through the kit:

createBlockKit({ linkEditor: { shortcut: "Mod-Shift-k" } }); // or `shortcut: false`

The bubble toolbar's Link button shows a fixed ⌘K hint; if you rebind or remove the shortcut, pass your own bubbleToolbar.items with a matching (or no) shortcut label.

On this page