UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.08k stars 722 forks source link

Open Standalone in Bootstrap Modal instead of new tab/window? #992

Open shankhadevpadam opened 4 years ago

shankhadevpadam commented 4 years ago

I am trying to configure the standalone version to do the following, any advice would be much appreciated:

Standalone button click -> Open Bootstrap Modal with filemanager UI inside In filemanager, upload photo as normal Click photo to add to standalone input and close this modal Return to standalone button with image thumbnail appended Currently, I have tried adding the iframe of filemanager to the HTML of a modal and calling it with a data-toggle on the 'Standalone anchor' button. This works but once uploaded, clicking on an uploaded image simply redirects the browser directly to the image source URL.

Many thanks

ojha007 commented 4 years ago

any idea anyone

shankhadevpadam commented 4 years ago

I want this package should be like a wordpress media manager.

ch1qui commented 4 years ago

Im struggling with something like this, but using tingle.js modal instead of bootstrap. After going trough script.js found that the it will search for a callback funcion defined as a paramater on the parent window, if added on an iframe as seen here. Sadly its throwing a weird error reporting that getSelecteditemsis not defined. Will come back if I find a decent solution without touching the original js file. It might be a bug.

shankhadevpadam commented 4 years ago

If this package supports modal instead of window pop then it is a super cool package. Like in this cms https://demo.twill.io/