Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dkx/mat-ckeditor

davidkcz9MIT0.0.1TypeScript support: included

CKEditor for angular material

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>