Created
May 6, 2020 14:17
-
-
Save bjoerntx/f49ae11480ae82c3c573075b61600f7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadDocument(document) { | |
TXTextControl.loadDocument(TXTextControl.streamType.InternalUnicodeFormat, document); | |
} | |
function saveDocument() { | |
return new Promise(resolve => { | |
TXTextControl.saveDocument(TXTextControl.streamType.InternalUnicodeFormat, function (e) { | |
resolve(e.data); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment