Task #96394
closedEpic #96323: TYPO3 Backend: ES6 Module (ESM) support
Use plain script-loading for CKEditor v4
100%
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>.
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72733
Updated by Benjamin Franzke almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4c0a78512ae1955414840ad4c8297981d99ae862.
Updated by Benjamin Franzke about 2 years ago
- Related to Task #98496: Remove outdated ckeditor requirejs configuration added