Bug reportNov 1, 2026· 0:33· 12 views
BlockNote 0.57: selecting a substring of a link and re-submitting its URL deletes the rest of the link's text
0:33 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
highFormatting toolbar link editing (Cmd+k / Edit URL submit). The handler likely replaces the whole link mark range with the selected text, instead of updating the href for the selection only.
os: macOSapp: BlockNote Playgrounddpr: 1url: /basic/minimallocale: en-USbrowser: Chromium 151.0.7922.34version: BlockNote 0.57 (per report title)viewport: 1280x720
Repro steps
- 1.Open /basic/minimal in the BlockNote Playground.
- 2.Click the 'Editor' textbox, press Cmd+a then Backspace to clear it.
- 3.Type 'Example'.
- 4.Press Cmd+a, then Cmd+k to open the 'Edit URL' input.
- 5.Click the 'Edit URL' input, enter 'https://example.com' and press Enter.
- 6.Click the 'Example' link. The 'Edit link' popup appears.
- 7.Press Home, ArrowRight twice, then Shift+ArrowRight three times to select 'amp'.
- 8.Press Cmd+k. The URL input shows 'https://example.com'.
- 9.Press Enter without changing the URL.
Expected
Resubmitting the unchanged URL for the 'amp' selection keeps the full text 'Example'. The link to https://example.com stays as it was, or at most applies to the selected range, with no text removed.
Actual
After Enter, the block shows only the link text 'amp'. The characters 'Ex' and 'le' are deleted from the document.
Evidence
visualControl case: applying the URL to the full selection works. 'Example' renders as an underlined link with no text lost.
visualThe URL input shows 'https://example.com' while only 'amp' is highlighted inside 'Example'.
visualJust before resubmit, 'amp' is still highlighted inside the full word 'Example' and the URL is unchanged.
visualAfter Enter, the block contains only the link 'amp' with an 'Edit link' popup. 'Ex' and 'le' are gone.
visualThe text is still 'amp' at later frames, so the deletion persists.
Issue markdown (copy-paste ready)
## Summary In BlockNote 0.57, if you select a substring of an existing link and resubmit its URL unchanged, the rest of the link's text is deleted. ## Environment - BlockNote Playground, `/basic/minimal` - Chromium 151.0.7922.34, macOS - Viewport 1280x720, DPR 1 ## Steps to reproduce 1. Open `/basic/minimal` (0s). 2. Click the 'Editor' textbox, press Cmd+a then Backspace (6.1s to 6.8s). 3. Type `Example` (9.0s). 4. Press Cmd+a, then Cmd+k (9.9s, 10.4s). 5. Click 'Edit URL', enter `https://example.com`, press Enter (12.9s to 15.3s). 6. Click the 'Example' link (18.9s). 7. Press Home, ArrowRight x2, then Shift+ArrowRight x3 to select `amp` (19.4s to 20.1s). 8. Press Cmd+k. The URL input shows `https://example.com` (20.9s to 21.0s). 9. Press Enter without changing the URL (25.5s). ## Expected The text `Example` stays intact. The link to `https://example.com` is unchanged, or applies only to the selection, and no text is removed. ## Actual The block now contains only the link text `amp` (27.0s). `Ex` and `le` are deleted. This persists at 31.0s. ## Evidence - 17.0s: Control case. Linking the full selection works and `Example` renders as a link. - 21.0s / 25.0s: `amp` is highlighted inside `Example` and the URL is unchanged. - 27.0s: Only `amp` remains, with an 'Edit link' popup. - No console or network data was captured. ## Suspected area The link submit handler in the formatting toolbar (Cmd+k / Edit URL). It seems to replace the whole link range with the selected text instead of updating only the href. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →