DS Server

TextDroppedEventArgs Object

Object|Introduced in 23.0

Description

The event argument object for the textDropped event.

Syntax

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

Examples

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

function handleTextDropped(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 dropped text.
textTypeThe MIME type of the dropped text.