From 1332a24ad6db454b76650bdca6e1e6163ea96624 Mon Sep 17 00:00:00 2001 From: Chrissi2812 Date: Wed, 8 May 2019 13:27:08 +0200 Subject: [PATCH] use splitToDefaultListItem again in todo_item splitToDefaultListItem didn't worked before with nested todos because of a missing import statement --- packages/tiptap-extensions/src/nodes/TodoItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tiptap-extensions/src/nodes/TodoItem.js b/packages/tiptap-extensions/src/nodes/TodoItem.js index 2213d2a11..cde441167 100644 --- a/packages/tiptap-extensions/src/nodes/TodoItem.js +++ b/packages/tiptap-extensions/src/nodes/TodoItem.js @@ -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), }