Project

General

Profile

Actions

Bug #102245

closed

Epic #99669: CKEditor5 Collection

CKEditor5 removePlugins configuration is not properly serialized as JSON array when some array items are migrated

Added by Benjamin Franzke about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Start date:
2023-10-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Reported by Johannes Schlier:

Example configuration:

editor:
  config:
    removePlugins:
      - image
      - specialchar

"image" is migrated which leaves "specialchar", but the array is encoded to JSON as

{"1":"specialchar"}

Instead of
["specialchar"]

Resulting in a CKEditor5 runtime error because the array method some() is tried to be executed on an object:

VM2902 ckeditor5-core.js:17 Uncaught (in promise) TypeError: e.some is not a function
    at v (VM2902 ckeditor5-core.js:17:2271)
    at VM2902 ckeditor5-core.js:17:1146
    at Array.filter (<anonymous>)
    at x.init (VM2902 ckeditor5-core.js:17:1134)
    at w.initPlugins (VM2902 ckeditor5-core.js:37:2082)
    at VM2846 ckeditor5-editor-classic.js:14:636
    at new Promise (<anonymous>)
    at w.create (VM2846 ckeditor5-editor-classic.js:14:593)
    at CKEditor5Element.firstUpdated (VM2808 ckeditor5.js:13:3194)

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #102099: Unbundle CKEditor5ClosedBenjamin Franzke2023-01-12

Actions
Related to TYPO3 Core - Bug #102230: Former CKEditor definitions no longer work after updating to TYPO3 v12.4.7ClosedBenjamin Franzke2023-10-23

Actions
Actions

Also available in: Atom PDF