Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor option for initial contents #154

Merged
merged 4 commits into from
Mar 24, 2023
Merged

Editor option for initial contents #154

merged 4 commits into from
Mar 24, 2023

Conversation

matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented Mar 24, 2023

This PR adds the initialContent editor option which allows for loading content into the editor on creation.

@vercel
Copy link

vercel bot commented Mar 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
blocknote-website ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 24, 2023 at 3:52PM (UTC)

@matthewlipski matthewlipski changed the title Added editor option for setting initial contents Editor option for initial contents Mar 24, 2023
@YousefED
Copy link
Collaborator

Nice, I think the "hacky" way is ok for now. Looking fwd to demo as well!

@matthewlipski matthewlipski merged commit 6925ee1 into main Mar 24, 2023
fogle pushed a commit to fogle/BlockNote that referenced this pull request May 20, 2023
* Added `initialContent` editor option and basic docs

* Changed `initialContent` type to `PartialBlock`

* Changed `initialContent` type to `PartialBlock` in docs

* Added editor content saving/restoring demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants