use splitToDefaultListItem again in todo_item

splitToDefaultListItem didn't worked before with nested todos
because of a missing import statement
This commit is contained in:
Chrissi2812 2019-05-08 13:27:08 +02:00
parent f81f07ad65
commit 1332a24ad6
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA

View File

@ -1,5 +1,5 @@
import { Node } from 'tiptap'
import { sinkListItem, splitListItem, liftListItem } from 'tiptap-commands'
import { sinkListItem, splitToDefaultListItem, liftListItem } from 'tiptap-commands'
export default class TodoItem extends Node {
@ -66,7 +66,7 @@ export default class TodoItem extends Node {
keys({ type }) {
return {
Enter: splitListItem(type),
Enter: splitToDefaultListItem(type),
Tab: this.options.nested ? sinkListItem(type) : () => {},
'Shift-Tab': liftListItem(type),
}