-
-
Notifications
You must be signed in to change notification settings - Fork 628
docs: Default block configuration example #2098
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
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
|
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 |
|
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. |

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