DS Server

TextPastedEventArgs Object

Object|Introduced in 23.0

Description

The event argument object for the textPasted event.

Syntax

{
   cancel: <boolean>,
   text: <string>,
   textType: <string>
}

Examples

The following example demonstrates TextPastedEventArgs in a practical document-editing workflow. The event argument object for the textPasted event.

function handleTextPasted(args) {
    console.log("cancel:", args.cancel);
    console.log("text:", args.text);
    console.log("text type:", args.textType);
}

Members

Properties

PropertyDescription
cancelSet this property to true to cancel the event.
textThe pasted text.
textTypeThe MIME type of the text.