indent
Description
Fires when increasing block indention
Usage
"indent": ({ step: number }) => boolean | void;
Parameters
The callback of the indent event can take an object with the following parameters:
step
- the step by which indentation was increased
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 "indent" event
editor.api.on("indent", (obj) => {
console.log(obj);
console.log("The indention was increased");
});
Change log: The event was added in v2.0