in the tinymce plugin config set a folder for the images
In an article upload an image using drag and drop
Save the article and then check the location of the uploaded image in media manager AND check the source of the article for the image location
Image will be uploaded to the specified folder
image is always uploaded to /images
I tried the following in the field
/media
images/media
/images/media
Yes the folder media does exist
Even when this bug is fixed I would suggest that the field is changed from text to folderlist
Labels |
Added:
?
|
I kinda suspect why this is happening, but I have to debug this, if no PR the next few days ping me again
Category | ⇒ | com_plugins |
Status | New | ⇒ | Confirmed |
Th problem is that this code:
$doc->addScriptDeclaration(
"
var setCustomDir = '" . $isSubDir . "';
var mediaUploadPath = '" . $tempPath . "';
var uploadUri = '" . $uploadUrl . "';
"
);
}
Is not respected or is overridden, the solution is to bound these settings to the proper settings array. Since the introduction of the customisable settings, tinyMCE by default has 2 pairs of settings, but those variables are defined once, I hope this explains the problem. Anyhow let me debug this and make a PR and move the discussion there
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-02 15:50:44 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/14906
I can confirm the problem.
In 3.6.5 you can use the "Images Directory" parameter in the TinyMCE plugin to insert a folder name (not a path). This will be automatically generated by the system on the first dragging of an image. The folder will be created as a subfolder of the one set in the media manager settings as “Path to Files Folder”. Since they are image files, I think it would be better to set that it is created as a subfolder of the one set in the media manager settings as “Path to Images Folder”.
Also now you can set a folder for the drag and drop images in media manager settings as “Path to Files Folder”.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14906.