[TS MVP] Create typings for editor config #11728
Labels
domain:ts
squad:core
Issue to be handled by the Core team.
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
To achieve the first goal of #11704 (Improving the DX for the community), it would be very helpful to have editor config statically typed.
The config can be used in different contexts:
Editor.create()
editor.config.define()
in constructor andeditor.config.get()
later.I would try to solve the first one and at least investigate if we can achieve the second.
If possible, we should avoid centralized type for the config and assemble it somehow from definitions near plugins that define them. We wouldn't introduce unnecessary coupling, and the user would be able to extend it as well. Maybe we could use some magic type interference based on plugin classes provided to
create()
method. If that fails, the centralized config type covering only plugins included inckeditor5
is better than the fully dynamic one.Part of #11708.
The text was updated successfully, but these errors were encountered: