Image path not remembered in 3.0 beta
When you add an image in an Image field (NOT binary) or in the WYSIWYG editor, the image path is not stored/remembered the next time you edit an Image field or WYSIWYG. If you need to set a lot of images then it is quite cumbersome to go through the same folders over and over again, and not all clients know how to import content.
This can be reproduced as follows: Image field:
- Add an Image field (NOT Binary) called 'test' to the Banner structure
- Edit Banner Content "Stay Contected to Your Money" and set the image to /images/404.jpg
Note: if you now edit this image again, the path is fine
- Save/Publish
- Edit the same Banner again and edit the Image
The path is now set to the ROOT again, it should be the path that the image had or the last path you selected
WYSIWYG editor:
- Edit Content (Generic) "Thank You"
- Click "add/insert image" in the WYSIWYG editor
- Select /images/404.jpg
Note: if you edit this image now or add a new image, the path is fine
- Save/publish
- Edit the content again
- Edit the image or add a new image
The path is back in the ROOT
It seems that the state of the 'explorer' is only stored on the edit content page.
+1
Updated the code to remember the last opened folder.
Last opened path is stored in session.
merged to master-3.1
Failed on master-3.1//Postgres//Chrome Tried testing the 2 ways: Image field and WYSIWYG editor
-
Image field: The path is set to the ROOT again, it should be the path that the image had or the last path you selected
-
WYSIWYG editor: See issue #6889 for reference