Skip to main content

outdent

Description

Fires when decreasing block indention

Usage

"outdent": ({ step: number }) => boolean | void;

Parameters

The callback of the outdent event can take an object with the following parameters:

  • step - the step by which indentation was decreased
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 "outdent" event
editor.api.on("outdent", (obj) => {
console.log(obj);
console.log("The indention was decreased");
});

Change log: The event was added in v2.0