By creating the IMAGES directories in the ADMINISTRATOR directory.
Create the TEST subdirectory in the IMAGES directory.
Go to the settings of the Editor Tinymce plugin and select a subfolder to save images.
We see that the list for selecting subfolders is limited to only one TEST folder.
Thus, the list of the directory from the administrator folder is displayed in the plugin settings. But when saving image files in the materials manager, the files are still saved to the standard image folder. The presence of the IMAGES folder in the Admin folder breaks the configuration setting of the Tinymce editor plugin.
Labels |
Added:
No Code Attached Yet
|
Title |
|
Labels |
Added:
bug
|
Thanks @korenevskiy for reporting the bug and @brianteeman for explains the issue clearer. If someone has time, change this line of code https://github.com/joomla/joomla-cms/blob/4.2-dev/plugins/editors/tinymce/src/Field/UploaddirsField.php#L51 to the below code should fix the bug:
$this->directory = JPATH_ROOT . '/' . ComponentHelper::getParams('com_media')->get('image_path');
I'm closing this issue because @korenevskiy made PR #39962 to solve it. Please help testing. Thanks.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-28 07:59:00 |
Closed_By | ⇒ | joomdonation |
For others looking at this. It is an obscure but valid bug.
The images directory option in TinyMCE should look something like this
In other words it should be displaying the /images directory and all subdirectories.
The bug occurs if you also have a folder /administrator/images
That should have no effect on the field in tiinymce but as shown below it does