Open image editor after upload
Is it possible to open the image editor automaticly after an upload?
1 Reply
On SpatieMediaLibraryFileUpload Element:
App.js and registered in FilamentAsset::register
I have the following scenario:
Image Editor should only open when a new image has been uploaded.
Theoretically, this is quite simple with
but then I had the problem that there was no element with this class.
Therefore I used the function: waitForElm from here https://stackoverflow.com/questions/5525071/how-to-wait-until-an-element-exists
So that it doesn't jump back into edit mode immediately after editing, I created the variable firstStart which is set to false after the first opening.
!!! Probably there are errors with multiple FileUploads on the page !!!