CKEditor Required Formatted Text field throws error when cleared

Created on 12 May 2025, 26 days ago

Overview

When a Formatted Text Field marked as required in a code component is cleared after being added to the canvas, it results in an error:

"An unexpected error has occurred while rendering the component's form."

This issue disrupts the component's rendering and prevents further editing of the field, causing unexpected behavior in the form.

Steps to Reproduce:

  1. Edit an Article
  2. Add a code component to the library with a required props Formatted Text Field.
  3. Drag and drop the added code component to the canvas
  4. In the component form, remove all text from the Required Formatted Text Field.
  5. Observe the error message: "An unexpected error has occurred while rendering the component's form."
{
    "message": "Required prop \"required\" is missing from the client model."
}

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mayur-sose
  • 🇮🇳India libbna New Delhi, India

    I followed the testing steps outlined in the issue summary but did not encounter any errors in the console or elsewhere.

    When I clear the text from the input field and attempt to publish the changes, a validation error is displayed: "The property name is required." — which is the expected behaviour.

    Additionally, after switching to Page Data and then back to Settings, the field retains its default text value.

Production build 0.71.5 2024