Skip to content

Commit 25cb01e

Browse files
committed
fix(block container): handle enter
1 parent 0a4a99a commit 25cb01e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/tiptap-extension-block-container/src/blockContainer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const blockContainer = Node.create({
6161
},
6262
addKeyboardShortcuts() {
6363
const handleEnter = () => this.editor.commands.first(({ commands, state }) => {
64-
return [() => commands.splitBlockContainer(state.selection.from)]
64+
return [() => commands.newlineInCode(), () => commands.splitBlockContainer(state.selection.from)]
6565
})
6666

6767
return {

0 commit comments

Comments
 (0)