codex-team / codex-team/editor.js

[Bug] Dragging an image block to another location copies it & re-uploads

Open
#1,406 3 comments 1 reaction 0 assignees View on GitHub
bug important questionable
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:
![image](https://user-images.githubusercontent.com/719365/97578803-97d40780-19f1-11eb-807c-f6844042a88f.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.