Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active June 24, 2020 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/6cc6bc95b64b1a39949a520909b5aac0 to your computer and use it in GitHub Desktop.
Save bjoerntx/6cc6bc95b64b1a39949a520909b5aac0 to your computer and use it in GitHub Desktop.
function saveDocument() {
TXTextControl.saveDocument(TXTextControl.StreamType.HTMLFormat,
function (e) {
alert(atob(e.data));
});
}
function loadDocument() {
TXTextControl.loadDocument(TXTextControl.StreamType.HTMLFormat,
btoa('<strong>Test</strong>'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment