Skip to content

globalThis.CKEDITOR_VERSION possibly out of date?  #18164

@babielgy

Description

@babielgy

📝 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionThis issue asks a question (how to...).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions