Problem/Motivation

#3231364: Add CKEditor 5 module to Drupal core introduced \Drupal\ckeditor5\Plugin\Editor\CKEditor5::validatePair() (and type: ckeditor5_valid_pair__format_and_editor) because there was no other way to validate that a text editor + text format are in sync.

But now that #3412361: Mark Editor config schema as fully validatable has landed, we can move the necessary validation constraints to type: editor.editor.* 🥳

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3425349

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Zero Functional test failures now 👍

wim leers’s picture

Issue tags: +Needs followup

It's thanks to the very detailed test coverage in \Drupal\Tests\ckeditor5\Kernel\ValidatorsTest that a critical oversight in ConfigEntityAdapter was discovered. 🫣

#1818574: Support config entities in typed data EntityAdapter introduced \Drupal\KernelTests\Core\Entity\ConfigEntityAdapterTest::testValidate(), but it is inadequate. We need additional test coverage, and this probably should be handled in its own issue.

See https://git.drupalcode.org/project/drupal/-/merge_requests/6892/diffs?co... for the relevant changes.

wim leers’s picture

wim leers’s picture

wim leers’s picture

wim leers’s picture

Title: Deprecate \Drupal\ckeditor5\Plugin\Editor\CKEditor5::validatePair() and `type: ckeditor5_valid_pair__format_and_editor` » [PP-1] Deprecate \Drupal\ckeditor5\Plugin\Editor\CKEditor5::validatePair() and `type: ckeditor5_valid_pair__format_and_editor`
Status: Active » Postponed
Issue tags: -Needs followup

Follow-up created: #3427106: Config validation: config entities should get the same validation errors when validated as plain config vs ConfigEntityAdapter. Pushed it forward far enough that it's now clear that that will work, and that it SHOULD happen ASAP.

All of the changes that the current MR makes outside of core/modules/ckeditor5 will disappear from this MR once #3427106: Config validation: config entities should get the same validation errors when validated as plain config vs ConfigEntityAdapter lands. So ceasing all work on this MR until that lands 👍

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.