Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ngx-text-editor

jrquick17848MIT3.3.0TypeScript support: included

WYSIWYG Editor for Angular 2+

angular, angular-editor, angular-wysiwyg-editor, wysiwyg-editor, ngx-editor, ngx-editor2, ngx-text-editor

readme

ngx-text-editor

npm npm npm

Index

About

This is an Angular 2+ WYSIWYG component.

  • Visit the demo to see it in action!
  • Visit my website for other cool projects!

Setup

Installation

For Angular 2-7:

npm install ngx-text-editor@^1.0.0 --save

For Angular 8:

npm install ngx-text-editor@^2 --save

For Angular 9+:

npm install ngx-text-editor@^3^ --save

Documentation

Import ngx-text-editor module

import { NgxTextEditorModule } from 'ngx-text-editor';

@NgModule({
  imports: [ NgxTextEditorModule ]
})

Import font-awesome into your application

Then in HTML

<ngx-text-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></ngx-text-editor>

For ngModel to work, You must import FormsModule from @angular/forms

Issues

If you find any issues feel free to open a request in the Issues tab. If I have the time I will try to solve any issues but cannot make any guarantees. Feel free to contribute yourself.

Documentation

Documentation is auto-generated using compodoc, and can be viewed here: https://jrquick17.github.io/ngx-text-editor/

Contributing

A special thanks to all of our contributors! To contribute yourself just submit a pull request!

Deploy

  • Generate Docs

    • Run npm run docs:build
  • Update Version

  • Build

    • Run npm run build from root.
  • Test

    • Copy dist/ contents into demo/node_modules/ngx-text-editor/
      • Run from root: cp -fr dist/* demo/node_modules/ngx-text-editor/
    • Run ionic serve from demo/
    • Run ionic build --prod from demo/
  • NPM Release

    • Run npm publish from dist/ directory.
  • Update Changelog

    • Add updates to CHANGELOG.md in root.

Future Plans

  • Add model for editorConfig
  • Update stackblitz
  • Update color picker

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[Released]

[3.3.0]

Changed

[3.2.0]

Changed

[3.1.0]

Changed

[3.0.0]

Changed

[2.2.0]

Changed

  • Use textarea instead of div to fix on iPhone by jrquick17

[2.1.2]

Changed

[2.1.1]

Changed

[2.1.0]

Changed

  • Renamed files, components, modules, etc for consistency by jrquick17

[2.0.0]

Added

[1.0.0]

Added

[0.0.1]

Added