User tests: Successful: Unsuccessful:
Pull Request for Issue #25015 .
Removed the deletion of the image base path from the upload path.
c/p from #25015 (comment)
Create a sub-directory of "images" under the main images directory.
Create a sub-directory of "testing123" under that directory.
Update the plugin: Editor - TinyMCE
Make sure you are editing tab "Set 0" so Administrator is showing in the groups that use this profile.
Under the "Images Directory" setting, select "images/testing123" (save & close)
please try all variants
the actual path on the server is "images/images/testing123"
Go under content, and articles and either create a new or edit an existing.
Drag and Drop an image into the content window.
Also change the image and file path in com_media options and try it with different pathes
You should not receive an error and see the image.
You should receive an error the file can not be uploaded, showing the filename as undefined.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
Tested with above listed parameters and this update worked.
Additional tests:
Set TinyMCE image dir to images (images/images) - Drag and Drop worked.
Set TinyMCE to just a sub-directory under the main images directory - Drag and Drop worked.
I have tested this item
Tested with above listed parameters and this update worked.
Additional tests:
Set TinyMCE image dir to images (images/images) - Drag and Drop worked.
Set TinyMCE to just a sub-directory under the main images directory - Drag and Drop worked.
I have tested this item
Tested with above listed parameters and this update worked.
Additional tests:
Set TinyMCE image dir to images (images/images) - Drag and Drop worked.
Set TinyMCE to just a sub-directory under the main images directory - Drag and Drop worked.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
The test instructions don’t reflect what that part of the code was supposed to cover. You need to test this after setting a different directory for the images in com_media...
@dgrammatiko should RTC be removed?
@dgrammatiko thx for the info but the parameter in the plugin doesn't add the base path to the return value, so it's not needed anyway or do I missing something in the history?
Updated test instructions.
As far as I understand the issue is that if you populate the field in tinymce for the final storage path people expect it to be relative to images but in reality it always wasn’t. Actually a better description for that field would do here (eg if you want a folder something relative to images then type images/something). By the way removing this logic in staging is a B/C break for those not using the root/images path for the media manager (I’m one of those few ppl)
You can't enter a path in the plugin I think you created a new fieldtype "imagespath" and you have to select it from the dropdown.
@dgrammatiko is referring to this option in the media manager
thats the path used in the plugin and is added automatically on upload, not if you set the path in the plugin. ymmv
@HLeithner quite honestly I thought that I had introduced that piece of code but looking at the initial commit of the drag and drop it seems that isn't the case, eg:
joomla-cms/plugins/editors/tinymce/tinymce.php
Lines 625 to 665 in 3bb31c8
images
folder
@dgrammatiko ok thx, I added the imagepath property to the test instructions and tested it by my self without any problems for the drag and drop upload.
Tested successfully with a different image root folder.
All JSessionTest are failing because of "Warning: A non-numeric value encountered in C:\projects\joomla-cms\libraries\vendor\joomla\string\src\phputf8\utf8.php on line 38"
I can't tell what is wrong and I am sorry but I don't have the time now to dig into this deeper. Just reporting, this fails only on 7.2
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-05 15:38:15 |
Closed_By | ⇒ | HLeithner |
Tested with above listed parameters and this update worked.
Additional tests:
Set TinyMCE image dir to images (images/images) - Drag and Drop worked.
Set TinyMCE to just a sub-directory under the main images directory - Drag and Drop worked.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25037.