You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dropping or pasting several files only inserts the first one #3212
When you drop (or paste) several files into the editor at once, only the first one is uploaded and inserted. The others are silently ignored.
handleFileInsertion keeps a reference to dataTransfer.items and calls items[i].getAsFile() inside the loop, after await editor.uploadFile(...) for the previous file. Browsers only expose drag/clipboard data while the event is being dispatched synchronously; after that the data store is protected and the item list is empty, so by the time the first upload resolves there is nothing left to read.
Activity