Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 5, 2019 09:43
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/7f0e4536bbaac46b0c5a0e70c161a7d7 to your computer and use it in GitHub Desktop.
Save bjoerntx/7f0e4536bbaac46b0c5a0e70c161a7d7 to your computer and use it in GitHub Desktop.
function autoSaveDocument() {
// store the document in the session storage
// which is shared over all browser tabs (complete session)
TXTextControl.saveDocument(
TXTextControl.streamType.InternalUnicodeFormat, function (e) {
sessionStorage.document = e.data;
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment