Skip to content
Proyek

Tentang

Angular WYSIWYG HTML Rich Text Editor

Alat pengembangan

Cara angka ini diukur

Yang dapat Anda lakukan

  • Template-driven forms
  • Custom placeholder

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Ngx-wig

screen shot 2017-12-12 at 14 52 51

Features

  • Template-driven forms
  • Reactive forms
  • Custom placeholder

Icons

Icons are not in the pack! You can use the icons that you like. We recommend to use Material Design Icons

If you do not want to use a full icons set, you can use these steps:

  1. Go to icons set
  2. Choose the icon that you want, press the right mouse button on it, and then select the "View SVG" option
  3. Go to URL-encoder for SVG and use it to convert your SVG

Installation

Ngx-wig could be simply installed via npm:

npm install ngx-wig

Basic usage

Import the NgxWigNodule:

import {NgxWigModule} from 'ngx-wig';

@Component({
  imports: [NgxWigModule]
});
export class MyCmp {
  text = 'Hello World';
}

Add the following snippet to your template:

<ngx-wig [content]="text" />

Advanced usage

Define visible buttons

<ngx-wig [buttons]="'bold, italic'" />

Get notified when content changes

<ngx-wig (contentChange)="result = $event" />

Customize styles on paste

providers: [
  {
    provide: NgxWigFilterService,
    useClass: NgxWigFilterStylesService
  }
]

Adding custom buttons

https://stackblitz.com/edit/ngx-wig-sample-plugins?file=src/app.ts

Jelajahi proyek terkait

Memuat…