We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927bade commit 5118467Copy full SHA for 5118467
packages/react/src/components/FormattingToolbar/DefaultSelects/BlockTypeSelect.tsx
@@ -72,6 +72,8 @@ export function getDefaultBlockTypeSelectItems<
72
).forEach((level) => {
73
items.push({
74
name: editor.dictionary.slash_menu[
75
+ // TODO: This should be cleaned up, heading level 1 has no "_1"
76
+ // suffix which makes this more complicated than necessary.
77
`heading${level === 1 ? "" : "_" + level}` as keyof typeof editor.dictionary.slash_menu
78
].title,
79
type: "heading",
0 commit comments