CKEditor 5 - Custom block

Created on 12 January 2023, over 2 years ago
Updated 5 May 2024, about 1 year ago

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
🐛 Bug report
Status

Active

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 21 hours ago

Created by

🇨🇿Czech Republic hop

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    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.

Production build 0.71.5 2024