Problem/Motivation
CKEditor 5 is not working in a custom block.
Steps to reproduce
Development:
- Install Drupal 9.3.9 (by composer).
- Export MariaDB database.
- Install Admin Toolbar (all modules)
- Update to Drupal 9.4.1.
- Update to Drupal 9.4.2.
- Update to Drupal 9.4.5.
- Update to Drupal 9.4.6.
- Update to Drupal 9.4.8.
- Update to Drupal 9.4.9.
- Update to Drupal 9.5.1.
- Enable CKEditor 5.
- Update from CKEditor 4 to CKEditor 5.
- Disable CKEditor 4.
- Add custom block (CKEditor 5 is OK).
- Export configuration
Test server:
- Install Drupal 9.5.1 files (by composer).
- Import MariaDB database from development (Drupal 9.3.9).
- Update database (by drush).
- Import configuration (Drupal 9.5.1)
- Add custom block (CKEditor 5 is not displayed and console shows error messages).
- If I uninstall Admin Toolbar Search module - Add custom block (CKEditor 5 is OK).
Proposed resolution
Fix issue:
- Uncaught TypeError: Drupal.editors is undefined
- Uncaught TypeError: t.widget is not a function
Comments
Comment #2
hop commentedComment #3
hop commentedComment #5
quietone commentedMoving to CKEditor5 component. The component 'ckeditor.module' refers to CKEditor 4, it was the simplest way to distinguish them when they were both in core.