Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active December 20, 2021 15: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/003416d0df3e9450bb4ece1303363348 to your computer and use it in GitHub Desktop.
Save bjoerntx/003416d0df3e9450bb4ece1303363348 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>My first DS Server application</title>
<script
src="https://trial.dsserver.io/documenteditor/JS/ds-server-document-editor.js">
</script>
</head>
<body>
<style>
#txDocumentEditorContainer {
width: 1000px;
height: 600px;
display: inline-block;
position: relative;
}
</style>
<h2>DocumentServices.DocumentEditor</h2>
<div id="txDocumentEditorContainer"></div>
<script>
window.addEventListener("load", function () {
TXTextControl.init({
containerID: "txDocumentEditorContainer",
serviceURL: "https://trial.dsserver.io",
authSettings: {
clientId: "dsserver.yourclientid",
clientSecret: "yourclientsecret"
}
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment