Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a third party plugin to CKEditor5? #17919

Open
Ahmed1995mansour opened this issue Feb 12, 2025 · 3 comments
Open

How to add a third party plugin to CKEditor5? #17919

Ahmed1995mansour opened this issue Feb 12, 2025 · 3 comments
Labels
type:question This issue asks a question (how to...).

Comments

@Ahmed1995mansour
Copy link

I used the new CKEditor5 builder online (https://ckeditor.com/ckeditor-5/builder/) to integrate CKEditor into my React Project and everything is working fine

Now I try to to add a plugin to CKEditor but whatever I do it gives me this error : ckeditor duplicated-modules

@Ahmed1995mansour Ahmed1995mansour added the type:question This issue asks a question (how to...). label Feb 12, 2025
@Reinmar
Copy link
Member

Reinmar commented Feb 14, 2025

It depends on whether you used CDN or npm option. There may be different reasons for duplicated-modules in both scenarios.

The most common reason for duplicated-modules in case of npm installation is a mismatch between versions of dependencies. Situation in which CKEditor 5 is installed in a different version than what the 3rd party or custom addon requires.

So, two questions:

  • Do you use npm or CDN?
  • What kind of additional plugin do you try to add?

@Reinmar Reinmar added the pending:feedback This issue is blocked by necessary feedback. label Feb 14, 2025
@Ahmed1995mansour
Copy link
Author

Thanks for your response

In answer to your question

1- I use NPM
2- Here's the plugin I want to integrate with my CKEditor in React App: https://www.npmjs.com/package/@dxpr/ckeditor5-ai-agent

@cbrandtbuffalo
Copy link

I'm not sure if it's the same issue, but we just ran into something similar with running a build and getting the ckeditor duplicated-modules error. We also saw the size of our build increase. In our case, our package.json had a line like:

"@ckeditor/ckeditor5-editor-classic": "^44.1.0",

When we ran the build today, that pulled in version 44.2.0 for just two modules. That seemed to cause the duplicate. We removed the "^", setting everything to 44.1.0, and the build ran correctly for us again.

@CKEditorBot CKEditorBot removed the pending:feedback This issue is blocked by necessary feedback. label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question This issue asks a question (how to...).
Projects
None yet
Development

No branches or pull requests

4 participants