plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
477 stars 647 forks source link

Undoing a block paste operation should reload the clipboard with the un-pasted stuff #4063

Open kenmanheimer opened 1 year ago

kenmanheimer commented 1 year ago

It's not uncommon to paste stuff in the wrong place. The first inclination, and most expedient thing to do, is to undo the paste and then paste again in the right place. Currently the clipboard is not reloaded when you undo a paste. It probably should be.

tiberiuichim commented 1 year ago

Indeed, we should connect the clipboard to the undo manager. Good pointer.

MAX-786 commented 1 year ago

Definitely, this would be great. I would love to contribute to this issue and if any progress you have made can you please share? or any information you would like to share. Thanks! :)

tiberiuichim commented 1 year ago

@MAX-786 If you'd work on this issue it would be awesome, as it's an interesting problem.

The task is about making the "undo manager" https://github.com/plone/volto/blob/9027d0475d5a025a935a3c66e30a63de9842c6af/src/components/manage/Form/Form.jsx#L565-L567 also integrate with the "block clipboard" (https://github.com/plone/volto/blob/master/src/components/manage/Form/BlocksToolbar.jsx)

The user story is like this:

MAX-786 commented 1 year ago

Thanks @tiberiuichim, for the guidance, I understood the issue and now I have an idea where to look, I'll soon make the proposal for this (^^)