Add explicit test coverage to prove multiple CKEditor 5 instances on the same page can co-exist

Created on 5 December 2022, about 2 years ago
Updated 20 December 2023, about 1 year ago

Problem/Motivation

When a content type has two or more fields using a text format using Ckeditor5 as editor, it breaks all the editors on the page. They just don't show up.

This does NOT happen with CKE5 and CKE4 fields on the same page.

Browser console output:

Uncaught TypeError: t.widget is not a function

The two lines below only appear when combining JS files.
Uncaught TypeError: Cannot set properties of undefined (setting 'ckeditor5')
Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')

Using latest drupal 9.4.stable

Steps to reproduce

1) Create at least 2 long text fields that have a ckeditor5 format
2) enable 'combine Javascript files' on admin/config/development/performance
3) Go to the content type with the 2 CKE5 fields and see that the editor is not there
4) Disable the JS option and see the two CKE5 editors appear.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
CKEditor 5 

Last updated 2 days ago

Created by

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

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.

  • Status changed to Needs review almost 2 years ago
  • Status changed to Needs work almost 2 years ago
  • 🇫🇮Finland anaconda777

    Hi,
    I have same problem, but applying patch #10 didnt help.
    When I close a modal window I get:
    Uncaught TypeError: dialogSettings is undefined
    and the same modal wont open again.

    Uncaught TypeError: dialogSettings is undefined
    ckeditor5.js

Production build 0.71.5 2024