The error occurred as a result of this sequence:
ng serve
and see it in the browser (Chrome).It's impossible to utilize <ckeditor [editor]?="Editor"></ckeditor>
tag in HTML file.
'@ckeditor/ckeditor5-build-classic'
I think you have incorrectly imported the ClassicEditor
Please modify the below line!
Before:
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
After:
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
.ts
import { Component, VERSION } from '@angular/core';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
Editor = ClassicEditor;
title = 'CKEditorAngularApp';
name = 'Angular ' + VERSION.major;
}
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
Test answer
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.