refactoring

This commit is contained in:
Philipp Kühn
2021-01-23 00:32:43 +01:00
parent 275033f312
commit 1e6f19667e

View File

@@ -148,11 +148,15 @@ export const Table = Node.create({
return true return true
} }
if (this.editor.commands.addRowAfter()) { if (!this.editor.can().addRowAfter()) {
return this.editor.commands.goToNextCell() return false
} }
return false return this.editor
.chain()
.addRowAfter()
.goToNextCell()
.run()
}, },
'Shift-Tab': () => this.editor.commands.goToPreviousCell(), 'Shift-Tab': () => this.editor.commands.goToPreviousCell(),
} }