Closed cutandpastey closed 9 years ago
Sounds like we want to identify the behaviour that is achieved by interacting with the undo manager in these patches (writing test for these cases if possible) before we make it optional?
I don't feel that is necessary. The only two places it's not totally encapsulated is in src/plugins/core/events.js
& src/plugins/core/patches/events.js
where the call to undo is there to clear the last undo item before formatters run. If undo is optional then this clearly isn't required.
I'm fine with this :+1:
OK so no need to cleanup the UndoManager's history because the UndoManager is completely bypassed? Fair enough.
Seems like we'll want a cleaner way to factor out the current undo manager and replace it with another one, in the future.
:+1:
@rrees made all requested amends.
:+1:
As mentioned here: https://github.com/guardian/scribe-plugin-advanced-undo/pull/1 I've tried to make scribe undo functionality optional by configuration. Not 100% sure of all the impacts of this so would be good to get eyes @rrees @hmgibson23 @robinedman @jamespamplin @theefer
NB: all the tests run locally.