Custom block with nested editor is throwing error "TypeError: Cannot read properties of undefined (reading 'type')".
Describe the bug I have a main blocknote editor instance and i have a custom block which renders one more blocknote editor inside the main editor. It renders properly but when I move cursor over it, it throws error "TypeError: Cannot read properties of undefined (reading 'type')".
same issue
same issue
+1
same here
same here
Same here
Same here. Any ETA on the resolution?
Could anyone share a reproducable stackblitz (e.g., start from this template) so we can look into this?
Could anyone share a reproducable stackblitz (e.g., start from this template) so we can look into this?
Hi Yousef, I did an example here https://stackblitz.com/edit/github-gmjxd36s?file=App.tsx
Actually it looks like is working but as soon as you move the mouse cursor to the nested editor, it throws an error.
and the error is the same as the title of this issue.
Uncaught TypeError: Cannot read properties of undefined (reading 'type')
There will be a lot more complexity around nested editors. It will be more than just fixing this error. I don't think this is something which we would want to support right now. So, I will mark this as a wont fix for now