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

fix: Image block DOM clutter, keyboard handling, and copy/paste #456

Merged
merged 4 commits into from Jan 3, 2024

Conversation

matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented Dec 5, 2023

This PR makes unused DOM elements from the image block get unmounted when not visible instead of setting display: none. Additionally, it fixes keyboard inputs all getting blocked when an image is selected (now only those which insert a character get blocked), and fixes copying for when only an image is selected. The keyboard handling and copy/paste fixes also apply for other block types without inline content.

Closes #472

Copy link

vercel bot commented Dec 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jan 3, 2024 4:22pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jan 3, 2024 4:22pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, but 2 questions that I think should be clarified in code comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block Id not found after dragging and resizing image
2 participants