Created
March 28, 2024 19:53
-
-
Save bjoerntx/21a547eb65909a5551134612d549a6dc 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
const load = (contentValue: string) => { | |
if (TXDocumentViewer) { | |
// encode the content to base64 | |
contentValue = btoa(contentValue); | |
// load the document into the viewer | |
TXDocumentViewer.loadDocument(contentValue, "loaded.html"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment