Skip to content

Commit 47518e6

Browse files
committed
fix: remove duplicated slash menu item
1 parent 84ad75d commit 47518e6

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

docs/src/pages/examples/extensions/heading/heading-block.example.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,6 @@ export class HeadingBlockExample {
101101
key: 'heading_3',
102102
...editor.dictionary.slash_menu.heading_3,
103103
}),
104-
(
105-
editor: BlockNoteEditor<
106-
typeof schema.blockSchema,
107-
typeof schema.inlineContentSchema,
108-
typeof schema.styleSchema
109-
>
110-
) => ({
111-
onItemClick: () => {
112-
insertOrUpdateBlock(editor, {
113-
type: 'heading',
114-
props: { level: 3 },
115-
});
116-
},
117-
badge: formatKeyboardShortcut('Mod-Alt-3'),
118-
key: 'heading_3',
119-
...editor.dictionary.slash_menu.heading_3,
120-
}),
121104
(
122105
editor: BlockNoteEditor<
123106
typeof schema.blockSchema,

0 commit comments

Comments
 (0)