Saving text format generates validation warnings

Created on 26 June 2024, 4 days ago
Updated 27 June 2024, 3 days ago

Problem/Motivation

I'm on Core 10.3 and not seen this in an earlier version.
I had been rearranging filter processing order - which may be connected, but the changes were not saved and just saving form with no changes gives same error messages

On saving the text format, eg full_html, an error message is displayed showing:
• 'nd_accordion' is not a supported key.
• 'nd_accordions' is not a supported key.
• 'nd_alert' is not a supported key.
• 'nd_animated_progress_bar' is not a supported key.
• 'nd_badge' is not a supported key.
• 'nd_breadcrumb' is not a supported key.
etc (67 lines)
Nothing is output to dblog.

The validation is called from core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php line 234

A stacktrace from where the message is generated (core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php)
core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(202):

Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraintValidator->validate() 
#1 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(154): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateConstraints() 
#2 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(164): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode() 
#3 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(164): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode() 
#4 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(164): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode() 
#5 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(106): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode() 
#6 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php(93): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate() 
#7 core/lib/Drupal/Core/TypedData/TypedData.php(132): Drupal\Core\TypedData\Validation\RecursiveValidator->validate() 
#8 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php(234): Drupal\Core\TypedData\TypedData->validate() 
#9 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php(680): Drupal\ckeditor5\Plugin\Editor\CKEditor5::validatePair() ...

Steps to reproduce

Edit text format and save

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.3

Component
CKEditor 5 

Last updated 1 minute ago

Created by

🇬🇧United Kingdom Jons

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

Comments & Activities

  • Issue created by @Jons
  • 🇬🇧United Kingdom Jons
  • 🇬🇧United Kingdom Jons
  • 🇺🇸United States vlyalko

    Having the same issues after upgrading to Drupal Core 10.3.0

    On saving the any ckeditor5 text format, eg full_html, an error message is displayed showing:
    'image_style_activity_card_responsive_style__gesso_images_desktop' is not a supported key.
    'image_style_activity_card_responsive_style__gesso_images_desktop_2x' is not a supported key.
    'image_style_activity_card_responsive_style__gesso_images_desktop_lg' is not a supported key.
    'image_style_activity_card_responsive_style__gesso_images_desktop_lg_2x' is not a supported key.
    .........

  • 🇫🇷France teddyvermeulin

    Having the same issues after upgrading to Drupal Core 10.3.0

    La clé "theme" n'est pas prise en charge.
    La clé "syntax" n'est pas prise en charge.
    La clé "height" n'est pas prise en charge.
    La clé "width" n'est pas prise en charge.
    La clé "font_size" n'est pas prise en charge.
    La clé "line_numbers" n'est pas prise en charge.
    La clé "print_margins" n'est pas prise en charge.
    La clé "show_invisibles" n'est pas prise en charge.
    La clé "use_wrap_mode" n'est pas prise en charge.
    

    And another one :

    This value must be a number of bytes, optionally with a unit such as "MB" or "megabytes". does not represent a number of bytes.
    This value should be between 1 and 99999.
    
Production build 0.69.0 2024