Commit 0da76f1c authored by Benjamin Franzke's avatar Benjamin Franzke Committed by Christian Kuhn
Browse files

[BUGFIX] Fix RTE link browser js error

With #96570 RequireJS is no longer loaded when CKEDITOR
is used, therefore the typo3link plugin needs to use
direct ES6 imports (using the importShim polyfill for
Firefox compatibility) instead of the legacy RequireJS
shim.

Releases: main
Resolves: #96923
Related: #96570
Change-Id: I5bcfbca003b98f264d67e51b9738eedb6f8865ac
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73559

Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 7a41f905
......@@ -113,11 +113,7 @@
* @param {String} url The url to load ino the iframe
*/
function openElementBrowser(editor, title, url) {
require([
'jquery',
'TYPO3/CMS/Backend/Modal'
], function($, Modal) {
window.importShim('@typo3/backend/modal.js').then(({default: Modal}) => {
Modal.advanced({
type: Modal.types.iframe,
title: title,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment