Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created June 1, 2018 15:01
function LoadDocumentFromClient() {
var html = "This is some <b>HTML</b> text.";
var encoded = btoa(html); // btoa base-64-encodes strings.
TXTextControl.loadDocument(TXTextControl.StreamType.HTMLFormat, encoded);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment