Remove the extra config schema because it is conflicting with other ckeditor patches

Created on 17 July 2024, 4 months ago
Updated 18 July 2024, 4 months ago

Problem/Motivation

I am using the other ckeditor patches for example ( https://www.drupal.org/project/drupal/issues/3274635 [upstream] Use CKEditor 5's native and UX Needs work ) and I am getting an error when I use some patches from this module. The error was

Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "ckeditor5_list" CKEditor 5 plugin definition is configurable, but its default configuration does not match its config schema. The following errors were found: [properties.styles] missing schema. in Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition->validateDrupalAspects() (line 190 of core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php).

So I have debugged the issue and find out that this module's schema file contained some of the plugins configuration which are not needed by this module (web/modules/contrib/ckeditor5_icons/config/schema/ckeditor5_icons.schema.yml).

Steps to reproduce

  1. Install CKEditor 5 - Font Plugin (Text Color, Background Color) module.
  2. Use the following patches.
  3. "drupal/ckeditor5_font": {
                    "Fix issue with schema": "https://www.drupal.org/files/issues/2024-06-25/ckeditor5_font-schema-fix-10.3.x-3368736-48_0.patch",
                    "Fix issue with empty config": "https://www.drupal.org/files/issues/2023-04-21/3350333-5.patch"
                }
  4. Use the Ckeditor 5 core patch for list styles.
  5. Open the ckedior by adding new content. You will receive the error
    Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "ckeditor5_list" CKEditor 5 plugin definition is configurable, but its default configuration does not match its config schema. The following errors were found: [properties.styles] missing schema. in Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition->validateDrupalAspects() (line 190 of core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php).
    

Proposed resolution

  • Remove the unwanted schema config from the web/modules/contrib/ckeditor5_icons/config/schema/ckeditor5_icons.schema.yml file
📌 Task
Status

Closed: outdated

Version

1.1

Component

Code

Created by

🇮🇳India someshver Panchkula

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024