Problem/Motivation

When I activate any mention for a filter format like "full_html" and I go to a form which has a text field, which uses this filter format, the whole CKEditor is broken and I get the following error appearing in the developer console:

CKEditorError: plugincollection-plugin-not-found {"plugin":null}
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#erro...
at ckeditor5-dll.js?v=45.2.0:5:160418
at ckeditor5-dll.js?v=45.2.0:5:160477
at Array.forEach ()
at u (ckeditor5-dll.js?v=45.2.0:5:160279)
at l.init (ckeditor5-dll.js?v=45.2.0:5:158767)
at w.initPlugins (ckeditor5-dll.js?v=45.2.0:5:172181)
at editor-classic.js?v=45.2.0:4:11082
at new Promise ()
at w.create (editor-classic.js?v=45.2.0:4:11039)
at Object.attach (ckeditor5.js?t22axc:373:21)

There are other ckeditor modules which have similiar issues:

Steps to reproduce

Install this module.
Go to the filter format settings page and activate any mention feed for any filter format (e.g. "full_html").
Go to a page which uses the filter_format.
See the error appearing in the console.

Proposed resolution

Fix the issue.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grevil created an issue. See original summary.

grevil’s picture

NOTE, that this does not happen on a vanilla Drupal installation. For me, this error happens on a side with an enormous amount of other modules installed. Eventually, this module doesn't even cause this behavior. I will provide further feedback to this.

valegole made their first commit to this issue’s fork.

valegole’s picture

Status: Active » Needs review

  • sujan shrestha committed f3512a12 on 2.0.x
    Issue #3544840, #3383101, #3614766, #3553735, #3553526, #3389262, #...
sujan shrestha’s picture

Status: Needs review » Fixed

Fixed in 2.0.x (commit f3512a1, release 2.0.1). The mention library was loaded from the CKEditor CDN, which no longer hosts DLL builds, and it declared a dependency on a library that doesn't exist (ckeditor5/ckeditor5). It now loads the mention DLL shipped with Drupal core and depends on core/ckeditor5, so it always loads after CKEditor. The old built JS also crashed on load when its settings were missing; it has been rewritten. Thanks @valegole for MR !8, which pointed to the root cause. Please run drush updb after updating.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.