Debug error in TinyMCE / dialog.php in CMSMS 2.2.21
Posted: Thu Mar 20, 2025 10:01 am
Hi,
after severals bugs* in TinyMCE when i try to add a PDF file link in a page with TinyMCE : the window was empty or display only one file.
I add this modif in this source :
modules/TinyMCE/responsive_filemanager/filemanager/dialog.php
Line 1197, add of : "?? []"
<?php }elseif(in_array($file_array['extension'],$config['cad_exts'] ?? [])){
After that no more problem.
Thx for your attention.
* with PHP 8.3.19
after severals bugs* in TinyMCE when i try to add a PDF file link in a page with TinyMCE : the window was empty or display only one file.
I add this modif in this source :
modules/TinyMCE/responsive_filemanager/filemanager/dialog.php
Line 1197, add of : "?? []"
<?php }elseif(in_array($file_array['extension'],$config['cad_exts'] ?? [])){
After that no more problem.
Thx for your attention.
* with PHP 8.3.19