CKEditor5 table properties not visible after Drupal 10.4.0 update

Created on 13 March 2025, 27 days ago

Problem/Motivation

Drupal to 10.4.0 now includes CKEditor 10.4.0 which breaks with the following error in the console: TypeError: t.Model is not a constructor.

Steps to reproduce

Install Drupal 10.4.0
Add the "Table" from CKEditor toolbar.
Table properties will be disappeared and an arrow will be shown.
Attaching the screenshots with 10.3..13 and 10.4.0

ERROR:

ckeditor5-dll.js?v=44.0.0:5 Uncaught CKEditorError: Pe.Model is not a constructor
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-Pe.Model is not a constructor
    at Fe (table.js?v=44.0.0:5:67053)
    at Le._fillDropdownWithListOptions (table.js?v=44.0.0:5:66918)
    at Le._prepareDropdown (table.js?v=44.0.0:5:66035)
    at Object.callback (table.js?v=44.0.0:5:63482)
    at Cs.create (ckeditor5-dll.js?v=44.0.0:5:641582)
    at ckeditor5-dll.js?v=44.0.0:5:607678
    at Array.map (<anonymous>)
    at ho._buildItemsFromConfig (ckeditor5-dll.js?v=44.0.0:5:607586)
    at ho.fillFromConfig (ckeditor5-dll.js?v=44.0.0:5:607444)
    at te._showToolbar (ckeditor5-dll.js?v=44.0.0:5:795398)

πŸ› Bug report
Status

Active

Version

10.4 ✨

Component

ckeditor5.module

Created by

πŸ‡ΊπŸ‡ΈUnited States sandeep lingampally

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sandeep lingampally
  • I can't reproduce the bug. Could you please add more steps to reproduce the bug, including any modules installed and in particular, CKEditor plugins?

  • πŸ‡ΊπŸ‡ΈUnited States sandeep lingampally

    Issue is with ckeditor5 table plugin.I don't see the table properties bar after adding the table. In place of arrow we should see 5 options which will give us the ability to edit cells and table properties.

    in addition I have this 3 modules installed.
    ckeditor_font
    ckeditor5_paste_filter
    ckeditor5_fullscreen

  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    We just had a client report the same on a site that was updated to 10.4.

    Found a few contrib projects that reported this error, such as πŸ› align, frameborder, longdesc, scrolling are deprecated. Active , that helped me track this down to a custom ckeditor plugin in that project, so it's an API change in ckeditor, but fix was easy. Couldn't reproduce on our distribution.

    The backtrace doesn't show where table.js is located, but it's likely a patched or custom file. Search for "new Model" and change that plus imports to new ViewModel as in that contrib commit.

Production build 0.71.5 2024