Skip to content

Copy-pasting content gives weird experience #1643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
shuo-s-feng opened this issue Apr 25, 2025 · 2 comments · Fixed by #1661
Closed
1 task

Copy-pasting content gives weird experience #1643

shuo-s-feng opened this issue Apr 25, 2025 · 2 comments · Fixed by #1661
Assignees
Labels
bug Something isn't working

Comments

@shuo-s-feng
Copy link

shuo-s-feng commented Apr 25, 2025

Describe the bug
When copying and pasting the content inside the editor, the copied content looks weird. Take a look at the following screen recording.

Screen.Recording.2025-04-25.at.9.56.52.PM.mov

To Reproduce
Just to open the official basic example at https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/01-basic/01-minimal?file=App.tsx, and you will be able to reproduce.

Misc

  • Node version: Online demo that I don't know the node version
  • Package manager: NPM
  • Browser: Chrome with Version 135.0.7049.96 (Official Build) (arm64)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@shuo-s-feng shuo-s-feng added the bug Something isn't working label Apr 25, 2025
@matthewlipski matthewlipski self-assigned this Apr 28, 2025
@screenspaceio
Copy link

screenspaceio commented May 4, 2025

I am experiencing this same issue - paste will nest the pasted content and add additional empty bocks. For me, this happens when copying content directly from a BlockNote instance and pasting. Copying HTML or content outside of BlockNote and pasting it works fine.

And possibly related, this exact same issue happens when using drag/drop to reorder blocks. When dragging a block up or down, the dragged block will become nested and a new empty block above the pasted block.

@Paarth-K
Copy link

Paarth-K commented May 5, 2025

The same thing happens when you try and parse the blocks from HTML, using editor.tryParseHTMLToBlocks. Everything seems to get indented. #1651 is a similar bug to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants