Sets the input focus to the specified text part. If the activated text part is not in the visible part of the document, the document is scrolled.

<void> TextPartCollection.activate(<FormattedText> formattedText, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
formattedText Specifies which formatted text will be activated.
callback Optional. Receives true, if the specified text part could be activated. Otherwise it is false.
errorCallback Optional. Is called when the operation failed with an error.