Hi, I am currently working on implementing functionalities as follow:
- user change cursor position and doc content, and user can click two buttons afterwards.
- By clicking button A, user could jump to last cursor position.
- By clicking button B, user could undo the doc changes(similar to ctrl+z in other editor)
it seems that the undoSelection() method cannot distinguish cursor position changes and doc content changes, i.e. I don’t know to revert cursor position changes seperately/independently.
Does codeMirror provide any possible solution/method about it? If not, will there be something that is helpful in the future?
Great thanks! : )