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