Javascript: TXTextControl.loadSelection Method
Description
Obsolete. This method will be removed in one of the next versions. Loads text in a certain format into the current selection.
Syntax
<void> TXTextControl.loadSelection(<StreamType> streamType, <string> base64Data)Parameters
| Parameter | Description |
|---|---|
| streamType | Specifies one of the numerical StreamType values. |
| base64Data | Base64 encoded document data. |
Examples
For an example on how to use this function have a look at the description of the loadDocument function.
The following example demonstrates TXTextControl.loadSelection in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Loads text in a certain format into the current selection.
TXTextControl.loadSelection(
TXTextControl.StreamType.HTMLFormat,
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAFgAH/qbPzWQAAAABJRU5ErkJggg=="
);