Caretaker:?
- The Caretaker is responsible for managing the saved states (mementos). It
can undo changes by restoring the TextEditor to its previous state stored
in the mementos stack.
can undo changes by restoring the TextEditor to its previous state stored
in the mementos stack.