Skip to content

Conversation

@matthewlipski
Copy link
Collaborator

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

  • Added heading configuration example.
  • Updated default block types docs.

Impact

N/A

Testing

N/A

Screenshots/Video

N/A

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

@vercel
Copy link

vercel bot commented Oct 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
blocknote Ready Ready Preview Oct 16, 2025 11:03am
blocknote-website Ready Ready Preview Oct 16, 2025 11:03am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 13, 2025

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/ariakit@2098

@blocknote/code-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/code-block@2098

@blocknote/core

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/core@2098

@blocknote/mantine

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/mantine@2098

@blocknote/react

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/react@2098

@blocknote/server-util

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/server-util@2098

@blocknote/shadcn

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/shadcn@2098

@blocknote/xl-ai

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-ai@2098

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-docx-exporter@2098

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-email-exporter@2098

@blocknote/xl-multi-column

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-multi-column@2098

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-odt-exporter@2098

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-pdf-exporter@2098

commit: 2deb465

Copy link
Contributor

@nperez0111 nperez0111 left a 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!

@matthewlipski matthewlipski merged commit 9c6f563 into main Oct 16, 2025
8 checks passed
@matthewlipski matthewlipski deleted the config-block-example branch October 16, 2025 11:13
@YousefED
Copy link
Collaborator

@matthewlipski @nperez0111 🙄

image

@nperez0111
Copy link
Contributor

@matthewlipski @nperez0111 🙄

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

@matthewlipski
Copy link
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.

@matthewlipski
Copy link
Collaborator Author

#2112

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.

4 participants