Closed Iyusuf40 closed 4 days ago
Yes, those functions belong to the history tools, however, I also imagine this tool you're building could be used by others as well, in any project that requires a text editor on the canvas. In that case, encapsulating undo/redo in the tool itself could be the way to go (just thinking out loud).
If you make it event-based, you can have best of both worlds
If you make it event-based, you can have best of both worlds
Wouldn't that mean you need to reimplement undo/redo using those events in some other app?
HistoryTools
now responsible for handling text edit changes