npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@thomerow/tx-ng-document-editor

v28.0.0

Published

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, F

Downloads

21

Readme

TX Text Control HTML5 Document Editor (Angular version)

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.

Prerequisites

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 tx-websocket-server.

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.

Installation

ng add @thomerow/tx-ng-document-editor

Usage

Your component.html could look like this, for example (the only mandatory attributes are width, height and webSocketURL):

<tx-document-editor
   width="1000px"
   height="800px"
   webSocketURL="ws://www.server.com:8080/TXWebSocket"
   statusBarColor="#FF00FF"
   [controlChars]="true"
   [userNames]="['user1', 'user2']">
</tx-document-editor>

Possible attributes

  • width - The width of the component (e. g. "1000px").
  • height - The height of the component (e. g. "800px").
  • webSocketURL - The WebSocket URL.
  • documentTargetMarkers - Sets whether markers for hypertext targets are shown in the editor.
  • backColor - Determines the background color of the main text area and the ruler bars as a CSS hex string.
  • statusBarColor - Determines the background color of the status bar as a CSS hex string.
  • editMode - Sets whether the document's text is read-only, can be selected or is editable. Possible values are Edit, ReadAndSelect and ReadOnly.
  • contextMenusEnabled - Sets whether a right click opens a context menu or not.
  • saveDocumentQuestionDialogEnabled - Sets whether a confirmation dialog should be shown before discarding unsaved changes.
  • tableGridLines - Sets wether table grid lines are shown in the editor or not.
  • textFrameMarkerLines - Sets whether text frames that have no border line are shown with marker lines.
  • controlChars - Sets whether control characters are visible or not.
  • textFieldsEditable - Sets whether text fields are editable or not.
  • formattingPrinter - The name of a printer the text dimensions and capabilities of which are used to format the document.
  • culture - The culture. Affects date and time string formats, for example.
  • uiCulture - The user interface culture. Affects the string resource language.
  • userNames - An array of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.
  • reconnectTimeout - Time in seconds before stopping reconnection attempts after a connection loss.