cut
Description
Fires when cutting selected text
Usage
"cut": () => 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 "cut" event
editor.api.on("cut", () => {
console.log("Selected text was cut");
});
Change log: The event was added in v2.0