ckeditor / ckeditor5-angular

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

ckeditor updateEditorData() issue #403

Closed waleedmughal42 closed 6 months ago

waleedmughal42 commented 7 months ago

using ckeditor5 custom build in an angular project. getting this error on updating the editorData: this.editorComponent.editorInstance.plugins.get('SourceEditing').updateEditorData(); Property 'updateEditorData' does not exist on type 'PluginInterface'.ts(2339)

Witoso commented 7 months ago

It looks like somehow the TypeScript augmentation didn't work. Try to:

  1. Add import type { SourceEditing } from '@ckeditor/ckeditor5-source-editing';. If that's not sufficient, then
  2. Look for the issue in this custom build as to why augmentation is not working. If unable to find the issue, then
  3. Perform casting, i.e., this.editorComponent.editorInstance.plugins.get('SourceEditing') as SourceEditing.
waleedmughal42 commented 6 months ago

thanks it was some issues in project src paths