Javascript: TXTextControl.images Property
Description
Gets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.
Syntax
<ImageCollection> TXTextControl.imagesExamples
The following example demonstrates TXTextControl.images in a practical document-editing workflow. It gets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
tXTextControl.images.getCount(function(count) {
console.log("images count:", count);
}, onTxError);Limitations
Read Only.