Comments (12)
Do you mean there is not the button "Select" in Filemanager to select the image ? In this case there is a config setting in filemanager.config.js.
from laravel5-example.
Yes, exactly, the button "Select" in Filemanager to select the image is not showing. However with the CKEditor image button, it shows and I can select the image. I have checked the filemanager.config.js. file and the only thing that could affect this is the "browseOnly" option which in my case is correctly set to false.
The only buttons showing are: "Parent folder", "Download", "Rename", "Delete" and "Replace file", there's no "Select" button
from laravel5-example.
from laravel5-example.
from laravel5-example.
The first picture is from my copy of your example app, the second is from my own app
from laravel5-example.
If you set this url
OpenServerBrowser(
'../../filemanager?CKEditor=content',
You'll have your button ;)
from laravel5-example.
I've just tried that but it didn't work.
I don't think 'CKEditor' should be in the url since I am not using ckeditor here to select the image. I am using a normal button like this:
"button type="button" onclick="BrowseServer('card');
to trigger the script to open filemanager where card is the id of my input:
"input type="text" class="form-control" name="card" autofocus
id="card" value="{{ $card }}"
from laravel5-example.
Yes but filemanager script check params to set the select button :
if($.inArray('select', capabilities) != -1 && ($.urlParam('CKEditor') || window.opener || window.tinyMCEPopup || $.urlParam('field_name'))) template += '<button id="select" name="select" type="button" value="Select">' + lg.select + '</button>';
If you use for example :
.../filemanager/index.html?field_name=something
There is the select button.
from laravel5-example.
It worked man!
I actually had to set the param at my controller:
public function filemanager(){
$url = config('achieve.url').'?field_name=card';
return view('auth.dashboard.filemanager',compact('url'));
}
You're the best man! You've been saving my ass these past few days. I was almost losing it on this one!
from laravel5-example.
Sorry man, but upon clicking the select button, nothing happens, however I can see from my chrome dev tool console that FileManager is trying to send the url to the "card" field which is in a different window from the file manager window.
Is there a work around to get the image url sent back to the parent windows "card" input upon clicking select?
from laravel5-example.
Hi,
When I look at filemanager code I see this line :
if($.urlParam('field_name')){
parent.document.getElementById($.urlParam('field_name')).value = url;
So url is setted on parent page with field_name id. It's behavior for tinymce and colorbox. You should ask Simon Georget on this point as he's the writer of this code.
from laravel5-example.
Alright, thank you, I'll close this now
from laravel5-example.
Related Issues (20)
- Fatal error: Call to undefined method Illuminate\Support\Facades\Validator::resolver() HOT 1
- Swift_TransportException in AbstractSmtpTransport.php line 383 HOT 1
- Image is not rendering in blog post HOT 1
- Maximum function nesting level of '100' reached, aborting!
- Nitrous.io Quickstart - Something went wrong. HOT 3
- $posts->created_at only display date without time HOT 2
- database connect error HOT 2
- Session set error HOT 1
- Want to Edit Role Permission HOT 13
- Nitrous shutting down
- It doesn't work at all HOT 1
- NotFoundHttpException in RouteCollection.php line 161: HOT 3
- Missing few things HOT 1
- .vscode folder HOT 1
- Given config file (filemanager.config.js) does not exist ! HOT 2
- what is the url of admin portal? HOT 1
- how shuold i do with the step 'Create a database and inform .env' ? HOT 1
- enforce the app to use ssl (https) HOT 1
- how can i deploy it to heroku?
- Bug in "auth register" route
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel5-example.