diff --git a/frontend/packages/app/src/blocknote-core/extensions/SlashMenu/defaultSlashMenuItems.tsx b/frontend/packages/app/src/blocknote-core/extensions/SlashMenu/defaultSlashMenuItems.tsx index 1d05353a33..4d109ac349 100644 --- a/frontend/packages/app/src/blocknote-core/extensions/SlashMenu/defaultSlashMenuItems.tsx +++ b/frontend/packages/app/src/blocknote-core/extensions/SlashMenu/defaultSlashMenuItems.tsx @@ -14,7 +14,7 @@ export function insertOrUpdateBlock( currentBlock.content[0].text === '/') || currentBlock.content.length === 0 ) { - editor.replaceBlocks([currentBlock.id], [block]) + editor.updateBlock(currentBlock, block) } else { editor.insertBlocks([block], currentBlock, 'after') editor.setTextCursorPosition(editor.getTextCursorPosition().nextBlock!)