CKEditor 5 ^36 compatibility — necessary for Drupal 10.1.x

Created on 24 March 2023, about 1 year ago
Updated 21 July 2023, 11 months ago

After updating to latest Drupal 10.0.6 (which introduces a new release of ckeditor5) ckeditor5 doesn't work anymore when the Editor Advanced Link plugin is enabled.

The problem is reproducible on a clean Drupal 10.0.6 installation with both 2.1.1 and 2.1-dev version of Editor Advanced Link.

The error logged on the browser console is:

TypeError: this.editor.plugins.get(...).formView is null
    _changeFormToVertical https://example.ddev.site/modules/contrib/editor_advanced_link/js/build/editorAdvancedLink.js?v=10.0.6:1
    init https://example.ddev.site/modules/contrib/editor_advanced_link/js/build/editorAdvancedLink.js?v=10.0.6:1
    promise callback*./packages/ckeditor5-core/src/index.ts/init/p/< https://example.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=36.0.1:5
    p https://example.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=36.0.1:5
    init https://example.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=36.0.1:5
    initPlugins https://example.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=36.0.1:5
    create https://example.ddev.site/core/assets/vendor/ckeditor5/editor-classic/editor-classic.js?v=36.0.1:4
    create https://example.ddev.site/core/assets/vendor/ckeditor5/editor-classic/editor-classic.js?v=36.0.1:4
    attach https://example.ddev.site/core/modules/ckeditor5/js/ckeditor5.js?rs17v0:371
    editorAttach https://example.ddev.site/core/modules/editor/js/editor.js?v=10.0.6:300
    attach https://example.ddev.site/core/modules/editor/js/editor.js?v=10.0.6:224
    attach https://example.ddev.site/core/modules/editor/js/editor.js?v=10.0.6:207
    attachBehaviors https://example.ddev.site/core/misc/drupal.js?v=10.0.6:166
    attachBehaviors https://example.ddev.site/core/misc/drupal.js?v=10.0.6:162
    <anonymous> https://example.ddev.site/core/misc/drupal.init.js?v=10.0.6:32
    listener https://example.ddev.site/core/misc/drupal.init.js?v=10.0.6:20
    domReady https://example.ddev.site/core/misc/drupal.init.js?v=10.0.6:26
    <anonymous> https://example.ddev.site/core/misc/drupal.init.js?v=10.0.6:31
    <anonymous> https://example.ddev.site/core/misc/drupal.init.js?v=10.0.6:34
ckeditor5.js:427:19
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy FiNeX

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

Comments & Activities

Production build 0.69.0 2024