Problem/Motivation

CKEditor 5 is not working in a custom block.

Steps to reproduce

Development:

  1. Install Drupal 9.3.9 (by composer).
  2. Export MariaDB database.
  3. Install Admin Toolbar (all modules)
  4. Update to Drupal 9.4.1.
  5. Update to Drupal 9.4.2.
  6. Update to Drupal 9.4.5.
  7. Update to Drupal 9.4.6.
  8. Update to Drupal 9.4.8.
  9. Update to Drupal 9.4.9.
  10. Update to Drupal 9.5.1.
  11. Enable CKEditor 5.
  12. Update from CKEditor 4 to CKEditor 5.
  13. Disable CKEditor 4.
  14. Add custom block (CKEditor 5 is OK).
  15. Export configuration

Test server:

  1. Install Drupal 9.5.1 files (by composer).
  2. Import MariaDB database from development (Drupal 9.3.9).
  3. Update database (by drush).
  4. Import configuration (Drupal 9.5.1)
  5. Add custom block (CKEditor 5 is not displayed and console shows error messages).
  6. 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

hop created an issue. See original summary.

hop’s picture

Issue summary: View changes
hop’s picture

Issue summary: View changes

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Component: ckeditor.module » ckeditor5.module

Moving 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.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.