TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
6.46k stars 440 forks source link

fix: Drag preview issues #905

Closed matthewlipski closed 3 months ago

matthewlipski commented 3 months ago

This PR fixes 2 issues with the drag preview for blocks:

  1. Fixes a regression made in #849 where the preview element was added to the DOM on drop instead of removed, cluttering the DOM with each drop.
  2. Fixes an edge case where drag previews were incorrectly displayed due to the preview element being outside of the editor.
vercel[bot] commented 3 months ago

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jul 3, 2024 3:51pm
blocknote-website 🛑 Canceled (Inspect) Jul 3, 2024 3:51pm