Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 30, 2023 15:36
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/12b3b20cda6dc2eeabfedaad86ea6e6e to your computer and use it in GitHub Desktop.
Save bjoerntx/12b3b20cda6dc2eeabfedaad86ea6e6e to your computer and use it in GitHub Desktop.
<tx-document-editor
width="1000px"
height="500px"
webSocketURL="wss://backend.textcontrol.com?access-token=yourtoken">
</tx-document-editor>
<div>
<button (click)="tsInsertTable(10,5,10)" class="btn btn-primary">Insert Table</button>
<button (click)="tsAddMergeField('«company_name»','company_name')" class="btn btn-primary">Add Merge Field</button>
<button (click)="tsSetMergeFieldText('New Text')" class="btn btn-primary">Set Merge Field Text</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment