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 two different CKEditor 5 builds to the project? #163

Closed
vmoratog opened this issue Feb 8, 2020 · 7 comments
Closed

How to add two different CKEditor 5 builds to the project? #163

vmoratog opened this issue Feb 8, 2020 · 7 comments

Comments

@vmoratog
Copy link

vmoratog commented Feb 8, 2020

Hello guys
I'm having issues with Angular ~8.1.2 when I try to use 2 ckeditors in the same project:

  • @ckeditor/ckeditor5-build-classic
  • @ckeditor/ckeditor5-build-inline

And the following error occurs: CKEditorError: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated

How can I fix this issue?

Right now I'm importing ckeditor component from a shared module.

Thanks in advance!

@ma2ciek
Copy link
Contributor

ma2ciek commented Feb 11, 2020

Hi @vmoratog

Unfortunately, the only way now is to create a super build from one of editors and to build the together by webpack. I know it's cumbersome 😞, we are aware of it. 

See https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/advanced-setup.html#creating-super-builds.

@ma2ciek ma2ciek changed the title CKEditorError: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated How to add two different CKEditor 5 builds to the project? Feb 11, 2020
@ma2ciek ma2ciek added type:question pending:feedback This issue is blocked by necessary feedback. labels Feb 11, 2020
@ma2ciek
Copy link
Contributor

ma2ciek commented Apr 3, 2020

Closing due to lack of activity.

@ma2ciek ma2ciek closed this as completed Apr 3, 2020
@ma2ciek ma2ciek removed the pending:feedback This issue is blocked by necessary feedback. label Apr 3, 2020
@jdnichollsc
Copy link

@ma2ciek I was wondering if we can have a webcomponent of the CKEditor (Using a tool like StencilJS) to avoid a lot of issues with Angular, what do you think?

@ma2ciek
Copy link
Contributor

ma2ciek commented Sep 1, 2020

Hi @jdnichollsc,

I'm aware that there're still some blockers that should be resolved before implementing a WebComponent encapsulating the CKEditor 5's editor - ckeditor/ckeditor5#1483. But if StencilJS or a similar tool provides a way to create it I'd be happy to try it.

@AbdallahAbdedaiem
Copy link

Hi @ma2ciek , It's been a long time. is it still not possible?
I'm trying to setup classic build and decoupled document build in the same project as I have different needs. But I'm getting that "duplicated ckeditor modules" error.

@ma2ciek
Copy link
Contributor

ma2ciek commented Mar 10, 2022

Currently, it's possible only by creating a super build - https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/advanced-setup.html#creating-super-builds.

@svensson-david
Copy link

Hi @ma2ciek!
Just wanted to chime in with this doc link https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/using-two-editors.html

To me that gave a bit of a better picture. Thought I'd post it in case more people are stopping by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants