Undefined error and content deletion in CKEditor fields when switching to full HTML from rich text.

Created on 13 August 2024, 3 months ago

Problem/Motivation

The issue was consistently reproduced by changing the formatting between basic_rich_text and full_html, especially when adding text formatting like bullet points. This results in content being deleted and replaced with "undefined" upon saving and publishing certain fields. The issue occurs when multiple fields are changed simultaneously, regardless of the direction of the format change (i.e., from basic_rich_text to full_html or from full_html to basic_rich_text).

Steps to reproduce

  1. Edit or create a content type.
  2. Add text fields with formats such as field_address, field_degrees, or field_text.
  3. Create a node and fill the fields using the basic_rich_text format for each one, then save.
  4. Edit the node, change the format to full_html for all fields, and add bullet points to all of them.
  5. Save and publish the page.
  6. Observe the issue where content may be deleted and replaced with "undefined."

General System Information:

Drupal Version: 10.3.1
Web Server: nginx/1.26.1
Database Version: 10.4.34-MariaDB-1:10.4.34+maria~ubu2004-log
Database System: MariaDB
PHP Version: 8.1.29

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Postponed: needs info

Version

10.3

Component
CKEditor 5 

Last updated 1 day ago

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

  • 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

Comments & Activities

Production build 0.71.5 2024