in my own extension I added some JS:
$GLOBALS['TBE_MODULES']['_configuration'][$_EXTKEY] = array (
'jsFiles' => array (
'EXT:' . $_EXTKEY . '/Resources/Public/Javascript/be-script.js',
),
);
(ext_tables.php)
Problem is that this JS-file is added in the top frame of the backend but I need it in the editing mode of an element of my extension. How do I define in which iframe the JS is loaded?
You can load your javascript and stylesheets with fluid
f:be.containterexample for a css file :
https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Be/Container.html