Fatal error with drupal 11.2 ckeditor 45

Created on 20 June 2025, 15 days ago

There is a breaking change related to the location of icons in CKEditor 5 v45.0.0 - custom plugins which uses CKEditor icons will require a compatibility update.
https://www.drupal.org/node/3528806
I don't have source so i can't make patch genally it must rebuild like this

package.json

{
  "name": "drupal-ckeditor5-youtube",
  "version": "1.0.0",
  "description": "CKEditor 5 youtube embedding",
  "author": "",
  "license": "GPL-2.0-or-later",
  "scripts": {
    "watch": "webpack --mode development --watch",
    "build": "webpack"
  },
  "devDependencies": {
    "@ckeditor/ckeditor5-dev-utils": "^30.5.0",
    "@ckeditor/ckeditor5-icons": "~45.2.0",
    "ckeditor5": "~45.2.0",
    "raw-loader": "^4.0.2",
    "terser-webpack-plugin": "^5.3.14",
    "webpack": "^5.99.8",
    "webpack-cli": "^6.0.1"
  }
}

In code ckeditor plugin
before

import {icons} from 'ckeditor5/src/core';
......
this.saveButtonView = this._createButton(
      editor.t('Save'),  icons.check, 'ck-button-save'
    );
....
    this.cancelButtonView = this._createButton(
      editor.t('Cancel'), icons.cancel, 'ck-button-cancel'
    );

after

import { IconCheck, IconCancel } from '@ckeditor/ckeditor5-icons';
....
 this._createButton(
      editor.t('Save'), IconCheck, 'ck-button-save'
    );
.....
 this._createButton(
      editor.t('Cancel'), IconCancel, 'ck-button-cancel'
    );
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France lazzyvn paris

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

Comments & Activities

Production build 0.71.5 2024