Skip to content

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