Typescript Error—block editor custom icon #15151
Labels
package:ui
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
Using v40.0.0 of ckeditor:
✔️ Expected result
Assigning
icon
toblockToolbar
should not raise an error. The docs show it off, and it works. https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/blocktoolbar.html#configuration❌ Actual result
Assigning
icon
toblockToolbar
raises a Typescript error:❓ Possible solution
Maybe add
icon?: string
to the declaration atckeditor5/packages/ckeditor5-core/src/editor/editorconfig.ts
Lines 580 to 584 in 46c6595
icon
in other places that it isn't actually used (not a huge problem, imo).📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: