ckeditor5-angular icon indicating copy to clipboard operation
ckeditor5-angular copied to clipboard

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

Open richard-ncs opened this issue 2 years ago • 2 comments

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 avatar Nov 06 '23 23:11 richard-ncs

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.

richard-ncs avatar Nov 07 '23 05:11 richard-ncs

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

Witoso avatar Nov 07 '23 07:11 Witoso