refactoring
This commit is contained in:
@@ -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(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user