Breaking: #88182 - jsfunc.inline.js has been dropped
See forge#88182
Description
The JavaScript file jsfunc.
which was responsible for FormEngine's subcomponent IRRE has been
superseded by the rewritten \TYPO3\
component.
Impact
Requesting the file typo3/
will cause a 404 error.
Calling any method of the global inline
object will throw an error since the object doesn't exist anymore.
Affected Installations
All installations of TYPO3 are affected.
Migration
There is no migration available in most cases, since the \TYPO3\
component is now event-driven.
One exception is the former inline.
method, since this part is now based on
post
. For this approach, a small helper utility TYPO3/
has
been added.
See the example for a possible migration:
// Previous code from DragUploader
window.inline.delayedImportElement(
irre_object,
'sys_file',
file.uid,
'file',
);
// New code
require(['TYPO3/CMS/Backend/Utility/MessageUtility'], function(MessageUtility) {
const message = {
objectGroup: irre_object,
table: 'sys_file',
uid: file.uid,
};
MessageUtility.send(message);
});
The Message
method automatically gets the current domain of the request and attaches it to
the postMessage. Message
must be used to check whether the incoming request was sent
by the current TYPO3 backend to avoid possible security issues.