From 2c336cc9de3b264705aad459f8a6337c18e02f07 Mon Sep 17 00:00:00 2001 From: TendernessCJS <50892641+TendernessCJS@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:16:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(tiptap):=20=E6=94=AF=E6=8C=81tiptap?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8B=93=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/AiEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/AiEditor.ts b/src/core/AiEditor.ts index 4d5df45..1247c10 100644 --- a/src/core/AiEditor.ts +++ b/src/core/AiEditor.ts @@ -252,7 +252,7 @@ export class AiEditor { let extensions = getExtensions(this, this.options); if (this.options.onCreateBefore) { const newExtensions = this.options.onCreateBefore(this, extensions); - if (!newExtensions) extensions = newExtensions!; + if (newExtensions) extensions = newExtensions; } this.innerEditor = new InnerEditor(this, {