– Coffezilla Sep 21 '21 at 14:44

1 Answers1

4

To support ctrl+z while using tab in <textarea>, you need to implement undo, redo functions to connect with <textarea>. When the <textarea> changes, record the changes in the history, and revert when ctrl+z key input occurs.

UndoRedojs is a library for this task.

I think there will be a lot of work to be done, such as setting the selection position, in order to fully implement it. I recommend using a text editor that has already been created.

lowfront
  • 639
  • 1
  • 5