CKEditor 4 trying to load asset/vendor/ckeditor/config.js although CKEditor 5 is set

Created on 18 December 2022, over 1 year ago
Updated 25 February 2023, over 1 year ago

Problem/Motivation

I have updated my Drupal instance from 9.4.8 to 9.5.0 and at the same time migrated the CKEditor to version 5. Apparently everything worked, CKEditor was recognised and output in my desired fields.

Since I used the module ckwordcount → under CKEditor 4, but it is no longer compatible with CKEditor 5, I looked around for alternatives.

I discovered the module Maxlength → , installed, configured, and the desired information was immediately displayed when editing the node.

However, I was surprised that the counting of letters did not work and also the hard blocking of further entries. At first I thought that it was incompatible, until I looked in the dev tool and found many *.js errors.

GET https://domain.tld/core/assets/vendor/ckeditor/config.js?t=M2GD net::ERR_ABORTED 404

Refused to execute script from 'https://domain.tld/core/assets/vendor/ckeditor/config.js?t=M2GD' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

ckeditor.js?v=4.18.0:253 Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "default" was not found at "https://domain.tld/core/assets/vendor/ckeditor/styles.js?t=M2GD".
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.resourceManager.<anonymous> (ckeditor.js?v=4.18.0:253:334)
    at n (ckeditor.js?v=4.18.0:248:455)
    at Array.v (ckeditor.js?v=4.18.0:249:93)
    at x (ckeditor.js?v=4.18.0:249:177)
    at CKEDITOR.env.ie.d.$.onerror (ckeditor.js?v=4.18.0:250:200)

At first I assumed that it was due to the Maxlength module, which I deactivated/uninstalled. But the errors in the dev tool remained.

The strange thing is, the CKEditor 5 works without problems when editing content, also the available plugins and that although the library itself cannot be loaded.

I was able to fix the problem after I reactivated CKEditor 4. The errors are gone, so the problem seems to be that the config.js for version 4 still wants to be loaded, although the module is already deactivated and no longer configured in the text formats.

Does anyone have an idea/tip on how to fix this problem?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

💬 Support request
Status

Fixed

Version

9.5

Component
CKEditor 5  →

Last updated about 3 hours ago

Created by

🇩🇪Germany zcht

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.

Production build 0.69.0 2024