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:
- #3471500: CKEditorError: plugincollection-plugin-not-found
- #3542486: JS error CKEditorError: plugincollection-plugin-not-found {"plugin":null}
- #3531299: Fix compatibility with CKEditor5 45.x
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
Issue fork ckeditor5_mentions-3544840
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
Comment #2
grevil commentedNOTE, 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.
Comment #5
valegole commentedComment #7
sujan shrestha commentedFixed 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.