Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 877 Bytes

File metadata and controls

36 lines (27 loc) · 877 Bytes
sidebar_label copy
title copy Event
description You can learn about the copy 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.

copy

Description {#description}

@short: Fires when copying selected text

Usage {#usage}

"copy": () => 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 "copy" event
editor.api.on("copy", () => {
    console.log("Selected text was copied");
});

Change log: The event was added in v2.0