-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
type:questionThis issue asks a question (how to...).This issue asks a question (how to...).
Description
📝 Ask a question
Hey, while debugging some of my ckeditor-duplicated-modules errors, I came to the origin of it: version.ts
The global check of globalThis.CKEDITOR_VERSION prevents different CKEditor builds to be loaded on the same page, which in some cases, is actually the wanted outcome.
Which can be understandable if this was a way to prevent conflicts in old releases. In reality, the ckeditor builds are encapsulated in itself, so conflicts are unlikely to happen, because the loaded classes are not global.
Which makes me wonder:
- is there a more technical reason for this check nowadays? Runtime errors are less likely to happen, because of encapsulation
- can the global check of this constant be removed?
- shouldn't the CKEditor Version be better written as a data attribute to the editor element itself, or as a getter in the editor instance?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:questionThis issue asks a question (how to...).This issue asks a question (how to...).