From a1771c7196a419a7abe4d7dd6020a9912a209478 Mon Sep 17 00:00:00 2001 From: cjhw <1784581164@qq.com> Date: Tue, 2 Jul 2024 00:10:53 +0800 Subject: [PATCH] fix: spell mistake --- packages/client/src/tiptap/core/extensions/paste.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/tiptap/core/extensions/paste.ts b/packages/client/src/tiptap/core/extensions/paste.ts index 353aa8a..1a12c72 100644 --- a/packages/client/src/tiptap/core/extensions/paste.ts +++ b/packages/client/src/tiptap/core/extensions/paste.ts @@ -47,9 +47,9 @@ const htmlToProsemirror = async (editor: CoreEditor, html, isPasteMarkdown = fal try { const imgs = body.querySelectorAll('img'); - await Prosemise.all([...imgs].map(reuploadImageAndUpdateSrc) + await Promise.all([...imgs].map(reuploadImageAndUpdateSrc)); } catch (e) { - // + // } const schema = getSchema(