The sample plugin isn't working.

Created on 12 January 2022, almost 3 years ago
Updated 31 March 2023, over 1 year ago

Problem/Motivation

I created a custom module using the sample starter kit provided by this module. I copied code from 'ckeditor5_plugin_starter_template', replaced 'MODULE_NAME' with my module name and when I tried to run it, the CKEditor stops working. I get the following error in the console:

CKEditorError: plugincollection-plugin-not-found {"plugin":null}
Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/โ€ฆort/error-codes.html#error-plugincollection-plugin-not-found
Failed to load demoPlugin - SimpleBox
Uncaught TypeError: i(...) is not a function in demoPlugin.js

Steps to reproduce

Try creating a module based on the starter kit.

Proposed resolution

Debug what is the source of the error and proceed accordingly.

Remaining tasks

Debugging and resolution.

User interface changes

NA

API changes

NA

Data model changes

NA

๐Ÿ’ฌ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia gaurav.kapoor

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.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States emclaughlin

    Does anyone have an actual answer to the origin question that doesn't require signing up for slack?

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany rgpublic Dรผsseldorf ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ช๐Ÿ‡บ

    @emclaughlin: No, I also don't have it, but I guess it probably won't help you anyway. The error message is almost universal and always happens when the Plugin is not found for some reason or another. Did you read my previous comments? They might be helpful for you. I also struggled a lot with this. I'd recommend checking the MODULE_NAME.ckeditor5.yml file and make sure you are compiling (yarn build) and deploying the .js file correctly.

  • ๐Ÿ‡ต๐Ÿ‡ฑPoland piotr pakulski Poland ๐Ÿ‡ช๐Ÿ‡บ

    @emclaughlin feel free to ping me on linkedIn in case you still have the problem?

  • Just tested this starterkit on a fresh D10 install with the standard profile.

    It took quite some time and effort to rename every variables, filenames..etc from simpleBox to my custom plugin. Then a clear caches and I can see the button in the text format admin UI.

    But this error prevents me from saving the settings:

    The MyCustomPlugin plugin needs another plugin to create

    , for it to be able to create the following attributes:
    . Enable a plugin that supports creating this tag. If none exists, you can configure the Source Editing plugin to support it.

    As is, the starterkit still does not work properly.

Production build 0.71.5 2024