We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now, that CKEditor 5 37.x ships with TypeScript typings, it would be great to benefit from corresponding typings also for CKEditorInspector.
CKEditorInspector
declare class CKEditorInspector { static attach(editorOrConfig: Editor | Record<string, Editor>, options?: { isCollapsed?: boolean }): string[]; }
(if I got the documentation straight and skipping attachToAll)
attachToAll
The text was updated successfully, but these errors were encountered:
refactor(app): Add Typings for CKEditorInspector
b74eb4d
As stated in ckeditor/ckeditor5-inspector#173, `CKEditorInspector` does not ship with typings yet. Providing some adhoc typings instead.
Agree
Sorry, something went wrong.
Yes, please--trying to work through the React custom component tutorial with TypeScript, but can't use CKEditorInspector!
Can anyone supply sample code using a workaround? Not sure how to integrate @mmichaelis 's example.
Edit: I ended up creating ckeditor5-inspector.d.ts with the content:
ckeditor5-inspector.d.ts
declare module '@ckeditor/ckeditor5-inspector'; // workaround until they release types for CKEditorInspector
...and this silenced the type error, allowed me to follow the integration steps from the tutorial.
No branches or pull requests
Now, that CKEditor 5 37.x ships with TypeScript typings, it would be great to benefit from corresponding typings also for
CKEditorInspector
.Workaround
(if I got the documentation straight and skipping
attachToAll
)The text was updated successfully, but these errors were encountered: