Saving text format generates validation warnings

Created on 26 June 2024, 5 months ago
Updated 2 July 2024, 5 months 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

  • Remove inactive filters from the list of filters to be validated for the text format.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
CKEditor 5 

Last updated 1 day ago

Created by

🇬🇧United Kingdom Jons

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024