subscript
Description
Fires when pressing the "Subscript" button in the menubar/toolbar or via Event Bus methods
Usage
"subscript": () => 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 "subscript" event
editor.api.on("subscript", () => {
console.log("Subscript was applied");
});
// trigger the "subscript" event
editor.api.exec("subscript", {});
Change log: The event was added in v2.0