standalone-block-editor icon indicating copy to clipboard operation
standalone-block-editor copied to clipboard

Experiment with adding undo/redo

Open getdave opened this issue 5 years ago • 1 comments

As requested in this https://github.com/getdave/standalone-block-editor/issues/6 this PR shows a PoC for adding undo/redo functionality to the standalone editor.

It's far from perfect as the real undo/redo functionality in the Post editor is more sophisticated and accounts for more scenarios.

That said it works at a basic level and should act as a good kicking off point.

Screen Capture on 2020-09-15 at 15-49-33

getdave avatar Sep 15 '20 14:09 getdave

Still need to fix things so minor undo levels aren't created.

Isolated Block Editor uses different actions to control the behaviour here. I need to look into this

https://github.com/Automattic/isolated-block-editor/blob/82b69eda507554c76b4afecc1f75987955c22e36/src/components/block-editor-contents/index.js#L91-L92

getdave avatar Oct 08 '21 13:10 getdave