UNDO functionality in jQuery text box

I am creating a small text editor with jQuery. I would like to add 2 buttons with "un-do" (ctrl z) and the opposite (ctrl y) functionality.

Is it possible to use the built-in functionality of windows (ctrl + z, ctrl + y) to get the desired effect, instead of saving everything on the stack and implementing it using jQuery? It seems obvious, since ctrl + z and ctrl + y really work when using textarea. The only change I need is to get the same effect if the user clicks on the button that I generate.

Gidi

+3
source share
2 answers

Javascript , , , Windows . . , . , , . , , . "" . .

+1

Javascript. - , - ?

Javascript, .

0

Source: https://habr.com/ru/post/1778338/


All Articles