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

Created on 13 August 2024, 8 months ago

Problem/Motivation

The issue was consistently reproduced by changing the formatting between 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 rich_text to full_html or from full_html to 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 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

Active

Version

10.3 โœจ

Component
CKEditor 5ย  โ†’

Last updated 5 days ago

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

    It restores functionality that was present in earlier versions.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024