ckeditor icon indicating copy to clipboard operation
ckeditor copied to clipboard

Issue During Redactor to CKEditor Conversion – Data Not Migrating for All Fields

Open pbmills opened this issue 7 months ago • 0 comments

Description

I recently upgraded from Craft CMS 3 to Craft CMS 4 and installed the CKEditor plugin to replace Redactor. After installation, I ran the CLI command:

ddev php craft ckeditor/convert/redactor

The command appeared to run successfully, but I noticed several issues:

  1. On the homepage, I have two Redactor fields. After converting to CKEditor, only one had its content successfully migrated to CKEditor. The second field was converted structurally, but the content was missing.
Image
  1. For Redactor fields inside Neo field layouts, the fields are converted to CKEditor, but no data is transferred—they appear empty post-conversion.
Image

Steps to Reproduce:

  1. Upgrade a Craft 3 project with Redactor fields (including within Neo fields) to Craft 4.
  2. Install the CKEditor plugin.
  3. Run php craft ckeditor/convert/redactor.
  4. Check converted entries, especially those with multiple Redactor fields or Redactor fields inside Neo.

Expected Behavior:

  • All Redactor content should be migrated, regardless of field count or nesting (e.g., Neo).

Actual Behavior:

  • Only one top-level Redactor field per entry is converted properly.
  • Redactor fields inside Neo blocks are not migrated (structure converts, but data is missing).

Additional info

  • Craft version: 4.16.2
  • PHP version: 8.2
  • Database driver & version: 8.0 MYSQL
  • Plugins & versions: Ckeditor 3.12.0 and Redactor 3.1.0

pbmills avatar Jul 06 '25 22:07 pbmills