Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.05 KB

File metadata and controls

38 lines (29 loc) · 1.05 KB
sidebar_label clear-text-format
title clear-text-format Event
description You can learn about the clear-text-format event in the documentation of the DHTMLX JavaScript RichText library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX RichText.

clear-text-format

Description {#description}

@short: Fires when a text format is cleared via the menubar/toolbar or Event Bus methods

Usage {#usage}

"clear-text-format": () => boolean | void;

:::info For handling inner events you can use Event Bus methods :::

Example {#example}

// initialize RichText
const editor = new richtext.Richtext("#root", {
    // configuration properties
});
// subscribe to the "clear-text-format" event
editor.api.on("clear-text-format", () => {
    console.log("Text format was cleared");
});
// clear text format
editor.api.exec("clear-text-format", {});

Change log: The event was added in v2.0