This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
@txtextcontrol/tx-ng-document-editor with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
This library offers a HTML5 based rich text editor of TX Text Control .NET Server for ASP.NET. Give your users an MS Word compatible document editor to create powerful reporting templates anywhere - in any HTML5-based browser including Google Chrome, Firefox, Safari and Internet Explorer.
The TX Text Control HTML5 Document Editor communicates with the backend over a WebSocket connection.
Therefore you additionally need to create and run a Node.js application which contains an instance
of the class
WebSocketServer from the package
The "heart" of the document editor is the so called synchronization service that synchronizes the
document in order to provide the WYSIWYG rendering. If you want to deploy your project, you will
have to host your own synchronization service and set the
serviceAddress in the WebSocket
server application mentioned above accordingly. The synchronization service is part of
TX Text Control .NET Server for ASP.NET.
ng add @txtextcontrol/tx-ng-document-editor
component.html could look like this, for example (the only mandatory attributes are
<tx-document-editor width="1000px" height="800px" webSocketURL="ws://www.server.com:8080/TXWebSocket" statusBarColor="#FF00FF" [controlChars]="true" [userNames]="['user1', 'user2']"> </tx-document-editor>
'de-DE'). Affects date and time string formats, for example.
'en-US'). Affects the string resource language.