diff --git a/src/nodes/Table/Table.js b/src/nodes/Table/Table.js index b58bff18a85..70cd44edcc3 100644 --- a/src/nodes/Table/Table.js +++ b/src/nodes/Table/Table.js @@ -347,8 +347,10 @@ export default Table.extend({ ) { return true } - this.editor.commands.goToNextCell() + return ( + this.editor.commands.goToNextCell() || this.editor.commands.leaveTable() + ) }, /** * inside a table cell @@ -365,7 +367,7 @@ export default Table.extend({ ) { return true } - this.editor.commands.goToPreviousCell() + return this.editor.commands.goToPreviousCell() }, } },