editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

[Fix] removes last character when drag and drop

Open boterop opened this issue 3 years ago • 1 comments

Context

Related to #2058 editorjs-drag-drop v1.1.0 there is a code line when executed "press" a deletion where the cursor is. when you drag and drop the cursor is positioned at the end of the text in the block, when we drag and drop again that block, that line press a deletion at that point.

https://user-images.githubusercontent.com/98826652/168165983-3fbf257b-400c-44f1-bfe3-dba2daab876a.mp4

Solution

Removes the code line where executes a deletion

https://user-images.githubusercontent.com/98826652/168166093-66eaf629-5480-4236-b900-4adf3d927bf7.mp4

boterop avatar May 12 '22 20:05 boterop

@chenguzhen87 Here is a better explanation of what is the bug, and how to solve it, in the plugin we made a patch, but we need this solution from editor.js

boterop avatar May 12 '22 20:05 boterop