BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

refactor: `contentRef` prop into `useContent` hook

Open matthewlipski opened this issue 1 year ago • 1 comments

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.

matthewlipski avatar May 31 '24 16:05 matthewlipski

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

vercel[bot] avatar May 31 '24 16:05 vercel[bot]