TXTextControlWeb.saveSelection Method

Saves the current selection in a certain format and sends the result back asynchronously by calling a given callback function.

Syntax

[JavaScript]
<void> TXTextControlWeb.saveSelection(<StreamType> streamType, <function> callback);
Parameter Description
streamType

Type: Number. Specifies one of the StreamType values.

callback

A function with one parameter. Is called with an argument object of type SaveDocumentResult containing the selection content after the selection has been saved successfully.

Example

For an example on how to use this function have a look at the description of the saveDocument function.