codex-team / codex-team/editor.js
[Bug] Dragging an image block to another location copies it & re-uploads
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
When you drag an image block to another spot in the editor, the block stays at the old location and a new block is created in the new location. After creation, the 'uploader'-function is triggered, re-uploading the image to the server.
Steps to reproduce:
1. Go to https://editorjs.io/
2. Click and hold on the image block with the Codex logo.
3. Drag it to another location and let go.
4. The block is duplicated and the image is uploaded again.
Expected behavior:
That the block moved, instead of duplicated.
Screenshots:

Device, Browser, OS:
Desktop, Chrome 87, Windows 10
Editor.js version:
2.19.0
Plugins you use with their versions:
image: 2.6.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.