Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active March 25, 2021 11:12
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/77d6a25436251586594aae3517c5f301 to your computer and use it in GitHub Desktop.
Save bjoerntx/77d6a25436251586594aae3517c5f301 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello Text Control in Electron!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<script src="textcontrol/txtextcontrol-ds-1.0.0.js"></script>
<script src="textcontrol/fileHandler.js"></script>
<link href="styles.css" rel="stylesheet">
</head>
<body style="background: white;">
<style>
#txDocumentEditorContainer {
width: 100%;
height: 100vH;
position: relative;
}
</style>
<div id="txDocumentEditorContainer"></div>
<script>
window.addEventListener("load", function () {
TXTextControl.init({
containerID: "txDocumentEditorContainer",
serviceURL: "https://trial.dsserver.io",
authSettings: {
clientId: "",
clientSecret: ""
}
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment