Giter Site home page Giter Site logo

Comments (12)

bestmomo avatar bestmomo commented on June 14, 2024

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.

lon-io avatar lon-io commented on June 14, 2024

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.

lon-io avatar lon-io commented on June 14, 2024

screenshot from 2016-01-06 22-41-45

from laravel5-example.

lon-io avatar lon-io commented on June 14, 2024

screenshot from 2016-01-06 22-43-22

from laravel5-example.

lon-io avatar lon-io commented on June 14, 2024

The first picture is from my copy of your example app, the second is from my own app

from laravel5-example.

bestmomo avatar bestmomo commented on June 14, 2024

If you set this url

OpenServerBrowser(
                '../../filemanager?CKEditor=content',

You'll have your button ;)

from laravel5-example.

lon-io avatar lon-io commented on June 14, 2024

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.

bestmomo avatar bestmomo commented on June 14, 2024

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.

lon-io avatar lon-io commented on June 14, 2024

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.

lon-io avatar lon-io commented on June 14, 2024

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.

bestmomo avatar bestmomo commented on June 14, 2024

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.

lon-io avatar lon-io commented on June 14, 2024

Alright, thank you, I'll close this now

from laravel5-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.