AssertionError: assert($editor instanceof Editor)

Created on 20 March 2024, 8 months ago
Updated 5 April 2024, 8 months ago

Problem/Motivation

Issue 📌 Convert Editor plugin discovery to attributes Active aliased Drupal\editor\Entity\Editor as EditorEntity but the code change did not include one instance of Entity. This results in a fatal error when visiting any text format's configuration page that is using CKEditor5.

Steps to reproduce

1. Install from 11.x
2. Go to admin/config/content/formats/manage/basic_html
3. Error is produced: AssertionError: assert($editor instanceof Editor) in assert() (line 264 of /var/www/web/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php).

Proposed resolution

Change Editor to EditorEntity

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
CKEditor 5 

Last updated 40 minutes ago

Created by

🇺🇸United States mark_fullmer Tucson

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024