From 973900a1888a39250225b6dbc8f52f257a29ac9a Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Fri, 23 Feb 2024 01:03:25 +0700 Subject: [PATCH] UBERF-5679 Add todo list to ListKeymap config (#4751) Signed-off-by: Alexander Onnikov --- packages/text-editor/src/kits/editor-kit.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/text-editor/src/kits/editor-kit.ts b/packages/text-editor/src/kits/editor-kit.ts index 40a472c783..858b659579 100644 --- a/packages/text-editor/src/kits/editor-kit.ts +++ b/packages/text-editor/src/kits/editor-kit.ts @@ -68,7 +68,22 @@ export const EditorKit = Extension.create({ }), CodemarkExtension, Underline, - ListKeymap, + ListKeymap.configure({ + listTypes: [ + { + itemName: 'listItem', + wrapperNames: ['bulletList', 'orderedList'] + }, + { + itemName: 'taskItem', + wrapperNames: ['taskList'] + }, + { + itemName: 'todoItem', + wrapperNames: ['todoList'] + } + ] + }), NodeUuidExtension, ...tableExtensions // ...taskListExtensions // Disable since tasks are not working properly now.