fix splitlistitem

This commit is contained in:
Philipp Kühn
2020-09-22 20:23:54 +02:00
parent 7f9bb9f1d1
commit 2856900c6a
3 changed files with 2 additions and 61 deletions

View File

@@ -12,7 +12,7 @@ export default new Node()
toDOM: () => ['li', 0],
}))
.keys(({ editor, name }) => ({
// Enter: () => editor.chain().focus().splitListItem(name).run()
Enter: () => editor.splitListItem(name),
// Tab: () => editor.sinkListItem(name),
// 'Shift-Tab': () => editor.liftListItem(name),
}))