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
5.89k stars 381 forks source link

Nested custom `content: 'none'` blocks throws an error #887

Open mfanselmo opened 4 days ago

mfanselmo commented 4 days ago

Describe the bug When using an custom block set with content: 'none', and creating it from the slash menu it throws an error.

image

To Reproduce A basic custom block https://stackblitz.com/edit/github-a6kavu?file=Separator.tsx Video of the issue: https://github.com/TypeCellOS/BlockNote/assets/26393563/2a191ead-07ed-47dd-8f89-9440a3810ea6

Misc

YousefED commented 1 day ago

Thanks for the clear reproduction, this seems like a bug indeed and we'll look into it!

What are you using BlockNote for btw?

mfanselmo commented 1 day ago

Thanks for the help! I am building an ELN (Electronic Lab Notebook), which will rely heavily on custom blocks from https://github.com/TeselaGen/tg-oss. So far so good except a few old dependencies we were using which we had to update. Once we launch it I will gladly share it with the community