Closed jasmeet2021 closed 11 months ago
I just came across this issue, the custom plugin's ckeditor.d.ts still needs the base class to be in the node modules. For example @ckeditor/ckeditor5-editor-decoupled or @ckeditor/ckeditor5-editor-classic. Depending on your setup. Without the base class installed, the create method will not be evaluated.
Errors:
editor={Editor}
Property 'create' is missing in type '{ Editor: typeof Editor; EditorWatchdog: typeof EditorWatchdog; }' but required in type '{ create(...args: any): Promise; }'
const data = editor.getData();
Property 'getData' does not exist on type 'Editor'.
Code:
dependencies:
"@ckeditor/ckeditor5-react": "^6.2.0", "ckeditor5-custom-build": "file:ckeditor5-40.1.0-6j2qd56wfdru",