BlockTypeSelect shows no heading options when createHeadingBlockSpec({ allowToggleHeadings: false })

Aberta
#2,845 0 comentários 5 reações 1 responsável Ver no GitHub

@matthewlipski já está trabalhando nisso.

Desde 24/8/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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
  1. Create a schema with toggle headings disabled: const schema = BlockNoteSchema.create({ blockSpecs: { ...defaultBlockSpecs, heading: createHeadingBlockSpec({ allowToggleHeadings: false, }), }, });
  2. 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 💖
Linguagem predominante
TypeScript
Estrelas
10.2k
Forks
772
Merge médio
3d 11h
PRs com merge (30d)
17

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TypeCellOS/BlockNote

Todas as issues de TypeCellOS/BlockNote

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.