Project

General

Profile

Actions

Task #96394

closed

Epic #96323: TYPO3 Backend: ES6 Module (ESM) support

Use plain script-loading for CKEditor v4

Added by Benjamin Franzke almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend JavaScript
Target version:
Start date:
2021-12-20
Due date:
% Done:

100%

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

Description

CKEditor should be loaded via a plain <script async> tag in
preparation for a transition away from requirejs to ES6 modules.

CKEditor v4 is not available as ES6 module and can not easily
be transformed into a strict-mode compatible module.
CKEditor v4 requires `this` to be the global window object
in various functions, but `this` is not bound to the global
window object in strict-mode (as implied by <script type="module">).

Note: CKEditor is not a real AMD module anyway, but is configured
to be shimed by requirejs to be loadable as AMD module,
therefore it can safely be loaded using good old <script>.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #98496: Remove outdated ckeditor requirejs configurationRejectedBenjamin Franzke2022-10-01

Actions
Actions

Also available in: Atom PDF