add splitToDefaultListItem command, fix #3

This commit is contained in:
Philipp Kühn
2018-09-04 13:42:02 +02:00
parent 6cc11283b5
commit b9ee8e9a28
3 changed files with 77 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import { Node } from 'tiptap'
import { splitListItem, liftListItem } from 'tiptap-commands'
import { splitToDefaultListItem, liftListItem } from 'tiptap-commands'
export default class TodoItemNode extends Node {
@@ -58,7 +58,7 @@ export default class TodoItemNode extends Node {
keys({ type }) {
return {
Enter: splitListItem(type),
Enter: splitToDefaultListItem(type),
'Shift-Tab': liftListItem(type),
}
}