monaco-editor-uwp icon indicating copy to clipboard operation
monaco-editor-uwp copied to clipboard

Add undo/redo commands

Open TyJOrtiz opened this issue 2 years ago • 0 comments

I was wondering if you could implement undo/redo commands

CodeEditor.Undo();

method:

var result = await this.InvokeScriptAsync(@"function runUndo() { editor.getModel().undo(); }; runUndo();");

CodeEditor.Redo();

method:

var result = await this.InvokeScriptAsync(@"function runRedo() { editor.getModel().redo(); }; runRedo();");

TyJOrtiz avatar Apr 29 '22 18:04 TyJOrtiz