1.0.2 • Published 4 years ago

ngx-angular-editor v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Ngx Angular Editor

This is a very simple but powerful WYSIWYG Editor for Angular6+ Applications.

Why?

There are losts of angular editors in npmjs, but most of them do require using unnecessary packages, like font awesome or bootstrap. This editor (with name including ngx and angular) does only require angular and angular material for work. Enjoy!!

Installing...

npm install ngx-angular-editor

Adding references on tour modules...

import { NgxAngularEditorModule } from 'ngx-angular-editor';

@NgModule({
  imports: [
    NgxAngularEditorModule
  ]
});

Adding the editor to your component...

<ngx-angular-editor media="false"></ngx-angular-editor>

And you can use it inside a form:

<form  (ngSubmit)="submit()" [formGroup]="form">
	<ngx-angular-editor formControlName="content"></ngx-angular-editor>
</form>

Parametrization

This initial version has only four @Input parameters (boolean all of them):

  • textFormat: to show text formatting options.
  • paraFormat: to show paragraph options.
  • alignment: to show alignment options.
  • media: to media insert options.

Enjoy!!