Skip to content
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

Custom blocks don't cut-paste properly #813

Open
superkelvint opened this issue Jun 6, 2024 · 5 comments
Open

Custom blocks don't cut-paste properly #813

superkelvint opened this issue Jun 6, 2024 · 5 comments
Labels
bug Something isn't working prio:high High priority

Comments

@superkelvint
Copy link

Describe the bug
When cutting-pasting custom blocks, unexpected behavior happens.

In the case of the custom alert block from https://www.blocknotejs.org/docs/custom-schemas/custom-blocks, the alert box seems to disappear. In other cases, indeterminate behavior happens.

Copying and pasting seems to work. Its cutting and pasting that doesn't.

To Reproduce
Please watch the screencast here: https://share.vidyard.com/watch/x2VNexUuFWMZy2X7kLc7ym

Basically, select the custom block, then "ctrl-x", "ctrl-v".

@superkelvint superkelvint added the bug Something isn't working label Jun 6, 2024
@superkelvint
Copy link
Author

Actually, with another custom block i was building, copying/pasting didn't work either.

@YousefED
Copy link
Collaborator

YousefED commented Jun 6, 2024

Thanks. I can't reproduce the issue in the video on Chrome Mac OS. Which browser are you using?

Also, curious to hear what you're building!

@matthewlipski matthewlipski added the prio:high High priority label Jun 11, 2024
@matthewlipski
Copy link
Collaborator

Managed to reproduce on Chrome:

Screen.Recording.2024-06-11.at.15.47.39.mov

Seems super flaky though, could only do it on a fresh reload of the page

@superkelvint
Copy link
Author

superkelvint commented Jun 11, 2024 via email

@thedevangvishnu
Copy link

The issue is even more weird. If you copy the blocks and paste them, it works as expected. And then if you cut and paste those blocks, IT WORKS.

But if you cut-paste the first time, it doesn't. But when a block/group of blocks have been already copy-pasted, then cut-paste seem to work.

cut-paste-bug.mp4

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

No branches or pull requests

4 participants