Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 5, 2019 09:41
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/d5311a453ac903d8553fd418a5be00de to your computer and use it in GitHub Desktop.
Save bjoerntx/d5311a453ac903d8553fd418a5be00de to your computer and use it in GitHub Desktop.
TXTextControl.addEventListener("textControlLoaded", function (e) {
// disable the loading progress dialog
TXTextControl.isLoadingDialogEnabled = false;
// restore the document
restoreDocument();
// set auto save to 500 milliseconds
var intervalAutoSave = setInterval(autoSaveDocument, 500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment