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

<void><StreamType> streamType, <SaveDocumentCallback> callback, [<SaveSettings> saveSettings], [<ErrorCallback> errorCallback])


Parameter Description
streamType Specifies one of the StreamType values.
callback Receives the current selection's data in a certain format and additional information about the saving.
saveSettings Optional. Specifies additional settings for saving.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: Method in the Text Control Blog: