Error with libraries ckeditor5-source-editing-codemirror

Created on 30 July 2023, over 1 year ago
Updated 13 July 2024, 4 months ago

Problem/Motivation

Error with /libraries/ckeditor5-source-editing-codemirror

GET http://example.com/libraries/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js?rymrd6 net::ERR_ABORTED 404 (Not Found)
edit:1 Refused to execute script from 'http://example.com/libraries/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js?rymrd6' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:184 Failed to load sourceEditingCodemirror - SourceEditingCodeMirror
(anonymous) @ js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:184
selectPlugins @ js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:176
attach @ js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:244
Drupal.editorAttach @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2512
(anonymous) @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2472
attach @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2463
(anonymous) @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:217
Drupal.attachBehaviors @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:214
(anonymous) @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:398
listener @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:388
js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:280 Debugging can be done with an unminified version of CKEditor by installing from the source file. Consult documentation at https://www.drupal.org/node/3258901
js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:281 CKEditorError: plugincollection-plugin-not-found {"plugin":null}
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-plugincollection-plugin-not-found
    at ckeditor5-dll.js?v=35.4.0:5:83157
    at ckeditor5-dll.js?v=35.4.0:5:83216
    at Array.forEach (<anonymous>)
    at u (ckeditor5-dll.js?v=35.4.0:5:83018)
    at l.init (ckeditor5-dll.js?v=35.4.0:5:81485)
    at R.initPlugins (ckeditor5-dll.js?v=35.4.0:5:88172)
    at js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:9:9043
    at new Promise (<anonymous>)
    at R.create (js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:9:9000)
    at Object.attach (js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:254:21)
(anonymous) @ js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:281
Promise.catch (async)
attach @ js_kTV1ZB-EGNeYvncdV4htQNK9S7FtPCIs9daOcuLOYyk.js:279
Drupal.editorAttach @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2512
(anonymous) @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2472
attach @ js_BFktZtaqNLTxMYYROI8nOYzQT0ojavGlTm0QEntjXWo.js:2463
(anonymous) @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:217
Drupal.attachBehaviors @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:214
(anonymous) @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:398
listener @ js_35G2pQ_OF66zSAf379Mh86zDQXiiyu4BHIS61ro4msc.js:388
πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @Nelo_Drup
  • Status changed to Postponed: needs info about 1 year ago
  • The issue summary should include steps to arrive at the error, not just a big copy/paste.

  • Hello, the steps would be to install the module
    and in status report it shows the following error:

    CKEditor 5 CodeMirror Plugin:
    CKEditor 5 CodeMirror plugin not found. Download the latest version of the library and place it in the libraries directory (/libraries/ckeditor5-source-editing-codemirror).
    The same steps were done but that build folder does not exist in that library when downloading it

    Mirror code:
    CodeMirror not found. Download the latest version 5 of the library and place it in the libraries directory (/libraries/codemirror).

  • Status changed to Active 10 months ago
  • Drupal sites should be managed by Composer, so you shouldn't follow that install method.

    Add the following to your composer.json

        "require": {
            "wikimedia/composer-merge-plugin": "^2.0"
        },
        "config": {
            "allow-plugins": {
                "wikimedia/composer-merge-plugin": true
            }
        },
        "extra": {
            "merge-plugin": {
                "include": [
                    "web/modules/contrib/ckeditor_codemirror/composer.libraries.json"
                ]
            },
        }
    
  • πŸ‡¨πŸ‡¦Canada dstorozhuk Chicago πŸ‡ΊπŸ‡Έ, Toronto πŸ‡¨πŸ‡¦, Kyiv πŸ‡ΊπŸ‡¦

    Improve description

  • πŸ‡¨πŸ‡¦Canada dstorozhuk Chicago πŸ‡ΊπŸ‡Έ, Toronto πŸ‡¨πŸ‡¦, Kyiv πŸ‡ΊπŸ‡¦

    I think module should not load code mirror plugin is source code plugin is not enabled for particular Text format configuration.

  • πŸ‡¨πŸ‡¦Canada dstorozhuk Chicago πŸ‡ΊπŸ‡Έ, Toronto πŸ‡¨πŸ‡¦, Kyiv πŸ‡ΊπŸ‡¦

    Sorry, wrong issue. Wanted to post in #3371709

  • Status changed to Closed: works as designed 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States wells Seattle, WA
Production build 0.71.5 2024