Open kenmanheimer opened 1 year ago
Indeed, we should connect the clipboard to the undo manager. Good pointer.
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! :)
@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:
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 (^^)
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.