Extend data schema item definition with allowChildren property #9261
Labels
domain:v4-compatibility
This issue reports a CKEditor 4 feature/option that's missing in CKEditor 5.
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
📝 Provide a description of the improvement
Currently, to allow additional model children, we have to go with 2 steps:
allowIn
property:This code is so often used (especially for
$text
model) that we could improve it by extending current SchemaItemDefinition with additional memberallowChildren
which would simplify above code to:Of course, it can be used for other model elements, the feature is not restricted to
$text
node only:The new property should make sure if the children element is already registered or throw an error otherwise.
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: