Last active
June 24, 2020 12:26
-
-
Save bjoerntx/6cc6bc95b64b1a39949a520909b5aac0 to your computer and use it in GitHub Desktop.
This file contains 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 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