undo
Description
Fires when pressing the "Undo" button in the menubar/toolbar or via Event Bus methods
Usage
"undo": () => boolean | void;
info
For handling inner events you can use Event Bus methods
Example
// initialize RichText
const editor = new richtext.Richtext("#root", {
// configuration properties
});
// subscribe to the "undo" event
editor.api.on("undo", () => {
console.log("Undo operation was performed");
});
Change log: The event was added in v2.0