ckeditor / ckeditor5-angular

Official CKEditor 5 Angular 5+ component.
https://ckeditor.com/ckeditor-5
Other
202 stars 110 forks source link

Type 'typeof ClassicEditor' is not assignable to type '{ create(sourceElementOrData: string | HTMLElement, config?: EditorConfig | undefined): Promise<Editor>; }'. #396

Open richard-ncs opened 10 months ago

richard-ncs commented 10 months ago

I'm trying to get a minimal version of the classic build running in Angular v16 with CKEditor v40 and ckeditor-angular v7. My StackBlitz is https://stackblitz.com/edit/stackblitz-starters-ymdlvz .

I've followed the Angular documentation at https://ckeditor.com/ckeditor-5/angular/ but keep getting an error Type 'typeof ClassicEditor' is not assignable to type '{ create(sourceElementOrData: string | HTMLElement, config?: EditorConfig | undefined): Promise<Editor>; }'.

I've also double-checked https://ckeditor.com/docs/ckeditor5/latest/installation/integrations/angular.html and the documentation there seems to say the same thing.

Am I missing something?

richard-ncs commented 10 months ago

I've tried downgrading versions of ckeditor and ckeditor-angular to the ones shown in the example Stackblitz in the documentation but then I get a different typing error which I cannot resolve.

Witoso commented 10 months ago

Duplicate: https://github.com/ckeditor/ckeditor5-angular/issues/364