Steps to reproduce:
- open post editor
- type stuff
- do a JS action (e.g. use one of the buttons)
- try to undo (press Ctrl-Z or the like)
Undo will only work on manually inputted changes, not changes via buttons (JS event handlers). This makes post editing rather annoying.