Skip to content

migrate the cke config into a field for nested fields too (when going from cms 4 to 5)#539

Merged
brandonkelly merged 2 commits into5.xfrom
bugfix/cke-matrix-and-dropping-config
Mar 18, 2026
Merged

migrate the cke config into a field for nested fields too (when going from cms 4 to 5)#539
brandonkelly merged 2 commits into5.xfrom
bugfix/cke-matrix-and-dropping-config

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Mar 18, 2026

Description

If you’re upgrading from cms v4 to v5 at the same time as cke plugin v3 to v5, the cms migrations will cause the nested CKEditor fields to have their settings semi-updated before the m260220_182920_drop_cke_configs migration has a chance to do its thing.

By the time m260220_182920_drop_cke_configs starts, some of the field’s settings, like ckeConfig, are lost from the working project config. In such a case, we need to get the field’s settings directly from the database (not from project config and not from the Fields->_fields memoized array) and work with that set of settings.

Related issues

@i-just i-just requested a review from brandonkelly as a code owner March 18, 2026 10:59
@brandonkelly brandonkelly merged commit bc485f3 into 5.x Mar 18, 2026
6 checks passed
@brandonkelly brandonkelly deleted the bugfix/cke-matrix-and-dropping-config branch March 18, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants