fix unit test

This commit is contained in:
duanfuxiang
2025-04-08 14:53:05 +08:00
parent 5118b3e3a7
commit 520fe80d11
16 changed files with 79 additions and 462 deletions

View File

@@ -16,7 +16,7 @@ export default function DragDropPaste({
useEffect(() => {
return editor.registerCommand(
DRAG_DROP_PASTE, // dispatched in RichTextPlugin
(files) => {
(files: File[]) => {
; (async () => {
const images = files.filter((file) => file.type.startsWith('image/'))
const mentionableImages = await Promise.all(