Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo #16

Open
bohrium opened this issue Mar 30, 2021 · 1 comment
Open

Undo #16

bohrium opened this issue Mar 30, 2021 · 1 comment

Comments

@bohrium
Copy link

bohrium commented Mar 30, 2021

I'm using prosemirror-math as an in-browser text editor. For this it would be useful to have someway to undo changes --- e.g. "[esc]"-then-"u" or "[ctrl]"-and-"z". One way to do this is to maintain a stack for the history. Maintaining such a redundant history can in principle cost lots of space, but since these are human-generated strings of text, that might be a negligible event.

@benrbray
Copy link
Owner

Actually, ProseMirror has built-in support for history, so this is just a matter of enabling the history plugin on the demo page. I'll add it in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants