Skip to content

Add ability to trigger undo/redo programmatically #37

@BertalanD

Description

@BertalanD

Checklist

[x] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[x] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/

Is your feature request related to a problem? Please describe.

I am looking for a way to trigger undo/redo programmatically (i.e. from a button click event handler).
It should be doable given only an EditorView instance, I don't want to pass around the UndoManager instance as well.

Describe the solution you'd like
I think the easiest fix would be to export y-undomanager.js's undo/redo functions from this library.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions