Interacting with editorsMethodsText document APIApiMethodsUndoOn this pageUndo Undoes the user's last action. Syntax expression.Undo(); expression - A variable that represents a Api class. Parameters This method doesn't have any parameters. Returns This method doesn't return any data.