docs: Default block configuration example#2098
Merged
matthewlipski merged 7 commits intomainfrom Oct 16, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
nperez0111
reviewed
Oct 16, 2025
nperez0111
reviewed
Oct 16, 2025
nperez0111
reviewed
Oct 16, 2025
nperez0111
approved these changes
Oct 16, 2025
Contributor
nperez0111
left a comment
There was a problem hiding this comment.
Thanks for doing this!
Collaborator
Contributor
|
That's weird, it works for me... Now that I'm looking at the menu stuff, I see how easily this sort of thing can get out of sync though, so maybe I'll fix this |
Collaborator
Author
|
The issue is that heading levels >3 are in the block type select, which should be disabled. Working on a fix rn, should take like 15 mins. |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR adds an example for configuring default blocks. Specifically, it configures the default heading block to allow only levels 1-3 and removes their toggleable variants.
It also updates the docs to provide more info on default block configuration.
Rationale
These features are mostly undocumented atm, so this is a needed addition.
Changes
Impact
N/A
Testing
N/A
Screenshots/Video
N/A
Checklist
Additional Notes