paste
Description
Fires when pasting content
Usage
"paste": () => 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 "paste" event
editor.api.on("paste", () => {
console.log("Content was pasted");
});
Change log: The event was added in v2.0