DS Server

RequestTextFrameCallback Function

Function

Description

Callback function for requests creating and adding a new TextFrame object to a text frame collection.

Syntax

function(<TextFrame> textFrame)

Examples

The following example demonstrates RequestTextFrameCallback in a practical document-editing workflow. Callback function for requests creating and adding a new TextFrame object to a text frame collection.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestTextFrameCallback(textFrame) {
    console.log("text frame:", textFrame);
}

TXTextControl.textFrames.getItem(requestTextFrameCallback, onTxError, 25);