You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error on readonly editor - TypeError: Cannot read properties of undefined (reading 'FormattingToolbar') #889
I am building a CMS with BlockNote, need a way to render blocknote document,
Did some research, but did not found a reliable way to generateHtml from blocknote document.
Where I ended up using BlockNote component to display the content for now, below.
Even with the editable=false, seems like the block note is trying to draw some toolbars & stuff. raising below
TypeError: Cannot read properties of undefined (reading 'FormattingToolbar')
This happens when I drag the text content, but wierdly only occurs from second entry (second text selection)
Using the mantine works, but is this supposed to be like this? (looking for a headless & lightest way possible to render blocknote contents, without styles)
Makes sense imo, I think the non-editable state of the editor is not super robust right now and could use some work. Think it's worth spending a week or 2 at some point to iron out all the edge cases and cut out what isn't needed when the editor is non-editable.
Activity
YousefED commentedon Jul 1, 2024
I think you're interested in #451
But you also raise a good point, we could disable all UI extensions and react components when editable=false. wdyt @matthewlipski ?
matthewlipski commentedon Jul 2, 2024
Makes sense imo, I think the non-editable state of the editor is not super robust right now and could use some work. Think it's worth spending a week or 2 at some point to iron out all the edge cases and cut out what isn't needed when the editor is non-editable.