BlockNote
BlockNote copied to clipboard
refactor: `contentRef` prop into `useContent` hook
This PR removes the hacky fix used for the contentRef prop by refactoring it into a useContent prop. Now setting the editable element in a React block is done via this hook instead of the contentRef prop.
Closes #659
TODO: There are currently a pretty big problem in that because this uses a hook which runs asynchronously, exporting to HTML does not properly serialize the content.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| blocknote | ✅ Ready (Inspect) | Visit Preview | May 31, 2024 4:30pm |
| blocknote-website | ✅ Ready (Inspect) | Visit Preview | May 31, 2024 4:30pm |