Saves the current selection in a certain format and sends the result back asynchronously by calling a given callback function.
<void> Selection.save(<StreamType> streamType, <SaveDocumentCallback> callback, [<SaveSettings> saveSettings], [<ErrorCallback> errorCallback])| Parameter | Description |
|---|---|
| stream |
Specifies one of the Stream |
| callback | Receives the current selection's data in a certain format including additional information. |
| save |
Optional. Specifies additional settings for saving. |
| error |
Optional. Is called when the operation failed with an error. |
Learn more about the Javascript: Selection.save Method in the Text Control Blog: