ошибка: невозможно прочитать свойство 'getAttribute' с нулевым значением. (Angular7) - PullRequest
0 голосов
/ 14 марта 2020

Я работаю над проектом angular и использую ckeditor5-editor-classi c, но получаю ошибку: не удается прочитать свойство 'getAttribute' из null. Как я могу решить это. . html файл

<div>
  <ckeditor [editor]="classicEditor" [config]="configEditor">
  </ckeditor>
</div>

.ts файл

import { Component } from '@angular/core';
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
import ClassicEditor from "@ckeditor/ckeditor5-editor- 
classic/src/classiceditor";

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})

export class AppComponent {
  public classicEditor = ClassicEditor;
  public configEditor = { plugins: [Alignment], toolbar: ['alignment'] };

  constructor() { }

  ngOnInit() { }
}
...