From dfaddb86f7f980dba7a7220b19ba615bcabddf32 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Wed, 26 Jun 2024 12:57:09 +0700 Subject: [PATCH] EQMS-941 Fix order of list and table extensions (#5918) Signed-off-by: Alexander Onnikov --- packages/text-editor/src/kits/editor-kit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/text-editor/src/kits/editor-kit.ts b/packages/text-editor/src/kits/editor-kit.ts index 6db6f49e2f..c870752a35 100644 --- a/packages/text-editor/src/kits/editor-kit.ts +++ b/packages/text-editor/src/kits/editor-kit.ts @@ -70,6 +70,8 @@ export const EditorKit = Extension.create({ addExtensions () { const mode = this.options.mode ?? 'full' return [ + // table extensions should go before list items + ...tableExtensions, DefaultKit.configure({ ...this.options, code: false, @@ -108,7 +110,6 @@ export const EditorKit = Extension.create({ ] }), NodeUuidExtension, - ...tableExtensions, ...(this.options.file !== false ? [ FileExtension.configure({