TextArea Value Cancel Javascript

I am building my own label editor and so far everything is going as planned.

When corresponding buttons are pressed, strong italics are added, etc.

However, the browser is cmd+z

not working because the called functions change the textarea value.

Is there a way to undo, redo work like a label editor for stackoverflow?

Should I keep the textarea values ​​and undo and redo?

+3


source to share





All Articles