After completing the following steps:
- ng2-ckeditor Installation - JSPM : jspm install ng2-ckeditor=github:chymz/ng2-ckeditor - NPM : npm install ng2-ckeditor
Creation of ts file:
import {Component} from 'angular2/core'; import {CKEditor} from 'ng2-ckeditor'; @Component({ selector: 'sample', directives: [CKEditor], template: ` <ckeditor [(ngModel)]="ckeditorContent" [config]="{uiColor: '#99000'}"></ckeditor>` }) export class Sample{ constructor(){ this.ckeditorContent = `<p>My HTML</p>`; } }
However, during runtime I encountered an exception stating "CKEDITOR is not defined".
I attempted to import "ckeditor" itself, but this resulted in another runtime exception "ckeditor uncaught typeerror cannot set property 'dir' of undefined"
Appreciate any assistance.