Cannot copy image when it is the first/only block in editor

Open
#2,016 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
react, typescript
Domain
frontend

Research direction

No file or test is named in the issue. First reproduce the copy behavior in a BlockNote editor with an image as the first or only block, then trace the editor's select-all and copy handling. Done means Ctrl+A followed by Ctrl+C includes the image when it is the first or only block, while preserving copying of surrounding text.

Written by the indexing model from the issue text.

Description

bug:P2

Description:
When an image is uploaded as the first (or only) block in the BlockNote editor, it cannot be copied using Ctrl+A and Ctrl+C.

Steps to Reproduce:

  1. Open BlockNote editor.
  2. Upload an image without adding any text above it.
  3. Press Ctrl+A to select all content.
  4. Press Ctrl+C to copy.

Actual Behavior:

  • Nothing is copied when the editor contains only an image.
  • If the editor contains an image as the first block and text below it, only the text is copied — the image is ignored.

Additional Notes:

  • Works fine when there is text before the image.
Dominant language
TypeScript
Stars
10.2k
Forks
772
Avg merge
3d 11h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TypeCellOS/BlockNote

All issues in TypeCellOS/BlockNote

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.