Update: Image Block: Change image by drag & drop an image from the desktop#14983
Conversation
draganescu
left a comment
There was a problem hiding this comment.
works as advertised! :)
|
Awesome update @jorgefilipecosta! Once this #14918 gets approved (by a review) I could add this behaviour to the gallery, media + text, cover, audio, vide and file blocks. Do you think it's ok to enable drag and drop there too? |
|
Thank you for the review @draganescu 👍
The gallery block already has drag & drop behavior, it appends the dragged images to the gallery, I guess we can leave that behavior. |
This PR allows images to dragged into the image block that already contains an image. The new image is uploaded and replace the previous one.
cc: @mtias
How has this been tested?
I added an image block; I selected an image from the media gallery.
I dragged an image from the desktop to the image block created on the previous point.
I verified the image was changed.