Missing icon (pencil) is breaking CKEDitor5

Created on 16 June 2025, 17 days ago

Problem/Motivation

With the latest version of Drupal 11 (11.2.0-rc1 and rc2), the pencil icon is missing from the core/assets/vendor/ckeditor5 files and breaks the toolbar display in WYSIWYG. And since the ckeditor5-anchor-drupal library hasn't been updated in two years, the code located in libraries/ckeditor5-anchor-drupal/src/ui/anchoractionsview.js is no longer up-to-date and still references icons.pencil, while the new version of the icon is named IconPencil.

Here is the JavaScript error found in the console :
TypeError: Cannot read properties of undefined (reading 'pencil') at new Ce (anchor-drupal.js?sxyi6g:51:2088)

Steps to reproduce

  1. Install the latest version of Drupal (11.2.0-rc1 or rc2)
  2. Install this module and the required library
  3. Add the tool in full text format
  4. Edit a page that contains WYSIWYG using full text format
  5. See the error in the console and the missing toolbar in WYSIWYG

Proposed resolution

The references and name of the icon to be used must be modified to use IconPencil.

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release
🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada franckylfs Montreal

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

Comments & Activities

Production build 0.71.5 2024