@dkx/mat-ckeditor
v0.0.1
Published
CKEditor for angular material
Downloads
4
Readme
DKX/Angular/MatCKEditor
CKEditor for angular material
Installation
$ npm install --save @dkx/mat-ckeditor
or with yarn
$ yarn add @dkx/mat-ckeditor
Usage
Module:
import {NgModule} from '@angular/core';
import {MatCKEditorModule} from '@dkx/mat-ckeditor';
@NgModule({
imports: [
MatCKEditorModule,
],
})
export class AppModule {}
Component:
import {Component} from '@angular/core';
import {CKEditor5} from '@ckeditor/ckeditor5-angular';
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
@Component({
templateUrl: './editor.component.html',
})
export class EditorComponent
{
public ckeditor: CKEditor5.EditorConstructor = ClassicEditor;
}
Template:
<dkx-mat-ckeditor [editor]="ckeditor" [formControl]="control" placeholder="Content"></dkx-mat-ckeditor>