By wim leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.7, 9.4.0, 10.0.0
Issue links:
Description:
A new condition type was added, on top of the pre-existing ones (toolbarItem, imageUploadStatus, filter and plugins): requiresConfiguration.
This allows you to specify a condition that requires the specified configuration subset to match (exactly).
With this new infrastructure, we can define:
conditions:
requiresConfiguration:
allow_resize: true
plugins: [ckeditor5_image]
(i.e. the ckeditor5_imageResize plugin should be enabled when the ckeditor5_image plugin is active and the configuration for the ckeditor5_imageResize contains exactly
allow_resize: true
Note that the specified required configuration is validated too: it must be a valid piece of configuration that matches the configuration schema for this CKEditor 5 plugin's configuration.
Impacts:
Module developers