CKEditor5 - character count stops when the text format is changed

Created on 4 October 2023, about 1 year ago
Updated 12 June 2024, 5 months ago

Problem/Motivation

When using CKEditor 5 with MaxLength the character count stops when the text format is changed to another format that is using a CKEditor.

Steps to reproduce

Add a MaxLength to a Text (formatted,long) field

After the page loads, on that text field change the Text format to another CKEditor 5 format.

Enter in text and you'll see the character content not update

Proposed resolution

Workaround

After changing the text format, save the form. Return to edit the form and MaxLength will begin working again for the new format.

Remaining tasks

  • ❌ Get maintainer approval for the proposed resolution
  • ❌ Implement resolution
  • ❌ Write test coverage (contact a maintainer if you need help)
  • ❌ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States acemichael

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024