BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

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

Open mfanselmo opened this issue 1 year ago • 2 comments

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

  • Node version:
  • Package manager:
  • Browser: Safari
  • [ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

mfanselmo avatar Jun 28 '24 20:06 mfanselmo

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

What are you using BlockNote for btw?

YousefED avatar Jul 01 '24 08:07 YousefED

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

mfanselmo avatar Jul 01 '24 13:07 mfanselmo

This code works in the latest version, not sure when it was fixed

nperez0111 avatar Sep 19 '25 13:09 nperez0111