Closed chf-gh closed 10 months ago
@chf-gh Thank you for reporting the issue. To trigger undo or redo actions through the API you could assign a variable to the 'Undo' instance within the onReady() callback. Then, you can employ this variable anywhere within your code and do Undo.undo
or Undo.redo
. For a practical example, please refer to the CodeSandbox demonstration provided.
Please let us know if this solution proves helpful to you.
I want to use api to trigger undo/redo actions, what should I do?