Я использовал ckeditor5-editor-classi c вместо ckeditor5-build-classi c и получаю еще одну ошибку: Невозможно прочитать свойство 'getAttribute' из null. . html файл
<ckeditor [editor]="editor"></ckeditor>
.ts файл
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
import ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
export class WelcomePageSettingComponent implements OnInit {
public editor = ClassicEditor;
constructor() { }
ngOnInit() {
ClassicEditor
.create(document.querySelector('#editor'), {
plugins: [Alignment],
toolbar: ['heading', '|', 'bold', '|', 'italic', '|', 'mediaEmbed', '|',
'alignment']
})
.then()
.catch();
}
}