A Simple WYSIWYG Editor for Angular5+ Applications.
Install via Package managers such as npm or yarn
npm install ngx-editor --save
# or
yarn add ngx-editor
Import ngx-editor
module
import { NgxEditorModule } from 'ngx-editor';
@NgModule({
imports: [ NgxEditorModule ]
})
Import font-awesome into your application
Then in HTML
<app-ngx-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
For ngModel
to work, You must import FormsModule
from @angular/forms
- Google Chrome
- Microsoft Edge
- Mozilla Firefox
- Opera
Demo at stackblitz ngx-editor
Documentation is auto-generated using compodoc, and can be viewed here: https://sibiraj-s.github.io/ngx-editor/