I developed a custom template in Joomla 4.
Now when I use the tinymce fronted editor and open any modal the XTD buttons the modals don't load the css and javascript resources in the template.
https://ibb.co/FVvQ008
What I'm trying to do is put a css file in the head tag of the iframe inside the modal. I've been going crazy for several days with this problem I hope someone can help me.
I tried overriding in
- html/layouts/joomla/editors/buttons/modal.php
html/layouts/libraries/html/bootstrap/modal/iframe.php
Code: Select all
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::base( true ).'/templates/joomla-italia-theme/css/system-j4.min.css');
In cassiopeia everything works correctly because the css and js files of the template are loaded both in the general head of the site and in the head tag of the iframe.
Can you help me or suggest?