insert-line
Description
Fires when inserting horizontal line
Usage
"insert-line": () => boolean | void;
info
For handling the inner events you can use the Event Bus methods
Example
// initialize RichText
const editor = new richtext.Richtext("#root", {
// configuration properties
});
// subscribe to the "insert-line" event
editor.api.on("insert-line", () => {
console.log("The horizontal line was inserted");
});
Change log: The event was added in v2.0