it's only Angular! No jQuery or other WYSIWYG monsters
ngx-wig could be simply installed via npm:
npm install ngx-wig --save
The last version on ngx-wig that was built for Angular 4.x is 0.3.6. Any higher version may be not fully compatible with Angular version lower than 5.0.0.
First, import the ngx-wig to your module:
import {NgxWigModule} from 'ngx-wig';
@NgModule({
imports: [ NgxWigModule ]
});
it's just attribute directive for textarea:
<ngx-wig [content]="text1"></ngx-wig>
<ngx-wig [content]="text1"></ngx-wig>
<ngx-wig [content]="text1" [placeholder]="'Enter instructions here.'"></ngx-wig>
<ngx-wig [content]="text1"></ngx-wig>
<ngx-wig [content]="text1"></ngx-wig>
<ngx-wig [content]="text1" [buttons]="formats, bold, italic"></ngx-wig>
<ngx-wig [content]="text1" (contentChange)="update($event)"></ngx-wig>
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
MIT © Stepan Suvorov