Skip to content

Commit

Permalink
allow shift-tabbing in code blocks in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jcv8000 committed Oct 19, 2023
1 parent 64ecec8 commit 187dbfb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export const CustomTable = Table.extend({
}

return this.editor.chain().addRowAfter().goToNextCell().run();
},
"Shift-Tab": () => {
if (this.editor.state.selection.$anchor.parent.type.name == "codeBlock") {
return false;
}

return this.editor.commands.goToPreviousCell();
}
};
},
Expand Down

0 comments on commit 187dbfb

Please sign in to comment.