Loads text in a certain format into the current selection.

<void> Selection.load(<StreamType> streamType, <string> base64Data, [<EmptyRequestCallback> callback], [<LoadSettings> loadSettings], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
streamType Document format.
base64Data Base64 encoded document data.
callback Optional. Is called when the operation completed.
loadSettings Optional. Additional settings for loading the data.
errorCallback Optional. Is called when the operation failed with an error.