BlockTypeSelect shows no heading options when createHeadingBlockSpec({ allowToggleHeadings: false })
@matthewlipski arbeitet bereits daran.
Seit 24.8.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
What’s broken?
When the heading block spec is configured with allowToggleHeadings: false, the default BlockTypeSelect does not show any heading options.
The schema itself supports normal headings, and headings still work elsewhere, but the formatting toolbar’s block type dropdown does not expose H1-H6.
What did you expect to happen?
BlockTypeSelect should still show normal heading options H1-H6. Only toggle-heading options should be removed when allowToggleHeadings: false
Steps to reproduce
- Create a schema with toggle headings disabled:
const schema = BlockNoteSchema.create({ blockSpecs: { ...defaultBlockSpecs, heading: createHeadingBlockSpec({ allowToggleHeadings: false, }), }, }); - Render the default block type select:
<FormattingToolbarController formattingToolbar={() => ( <FormattingToolbar> <BlockTypeSelect /> </FormattingToolbar> )} />
BlockNote version
0.50.0
Environment
No response
Additional context
No response
Contribution
- I'd be interested in contributing a fix for this issue
Sponsor
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10.2k
- Forks
- 772
- Ø Merge
- 3 T. 11 Std.
- Gemergte PRs (30 T.)
- 17
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TypeCellOS/BlockNote
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TypeCellOS/BlockNote#3098 ·
-
Off-By-One `RangeError` Crash and Text Duplication in `StyleManager.editLink` and `deleteLink` Offenneeds-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TypeCellOS/BlockNote#3073 ·
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TypeCellOS/BlockNote#3072 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TypeCellOS/BlockNote#2949 · 1 Kommentar ·
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TypeCellOS/BlockNote#2855 ·
Alle Issues in TypeCellOS/BlockNote
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
area:tools bug good first issue help wanted priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
TaewoooPark/Motifcode#14 ·
-
bug 🐞
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
BasedHardware/omi#15320 ·
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 78/100
vercel/vercel-plugin#199 ·