Independent elFinder
Added by keykan ... about 1 year ago
Hi
I have a gallery and every picture has a thumbnail with 140*80 px size,by clicking on the thumbnail the picture will show in its own size.
In admin part,I put a button and text-box for adding a picture in gallery.For this part,I want to use elfinder.For example, when I click on the button of selection picture to add in gallery, elfinder will open,then I can select my photo.
My questions are:
1.This finder is independent of elrte, what should I do for its configuration?
2.When I click on picture,how can I get its address and put it in text-box?
3.Can elfinder work out of elrte environment?(for some cases as I said ).
This project is the continues of my privious project that I use elrte in all of that. But for this case I said independent part from elrte because elrte doesn't have a part for uploading picture in gallery.
Replies (8)
RE: Independent elFinder
-
Added by Troex Nevelin about 1 year ago
Of course it can. elFinder has editorCallback option, write your function to catch the selected file url, like this:
editorCallback : function(url) {
alert(url);
}
RE: Independent elFinder
-
Added by keykan ... about 1 year ago
Hi
My problem didn't solve.
You know, I had 5 pages and I use elrte and elfainder (both of them)in four pages of them . My fifth page is a gallery and I want to use just elfider (as a file browser). But when I use the below code :
$().ready(function() {
var opts = {
cssClass : 'el-rte',
// lang : 'ru',
height : 400,
toolbar : 'maxi',
cssfiles : ['components/elrte/css/elrte-inner.css'],
fmOpen : function(callback) {
$('<div id="myelfinder" />').elfinder({
url : 'components/elfinder/connectors/php/connector.php',
lang : 'en',
dialog : { width : 800, modal : true, title : 'Files' }, // open in dialog window
closeOnEditorCallback : true, // close after file select
editorCallback : function(url){ $('#ElementHref').val(url);} // OR function(url){alert(url);}
})
}
}
$('#editor').elrte(opts);
});
elfider doesn't work in the first pages(1-4) . In the other hand,I can't use elfinder in 2 cases in one project. What should I do?
thanks.
RE: Independent elFinder
-
Added by Troex Nevelin about 1 year ago
You are redefining elRTE callback - sure elRTE will stop working with elFinder. You need to run another instance of elFinder for selecting file and putting the URL into input field.
RE: Independent elFinder
-
Added by Troex Nevelin about 1 year ago
Check for live demo http://jsfiddle.net/troex/4A9m9/
RE: Independent elFinder
-
Added by keykan ... 12 months ago
Thank you so much my dear friend.
My problem solved... .
RE: Independent elFinder
-
Added by Csanad Novak 7 months ago
Hi,
I would need exactly this functionality with elFinder 2.0 beta. The live jsfiddle.net demo is not working due to the invalid connector, but I've been able to replicate with the resources in jsfiddle. However it seems to be the version 1.3 and it's not working as soon as I switching to 2.0beta.
Can you give me an working example how to use independent Elfinder 2.0? I've got an input field, a browse button and when I click on the browse button I'd like to fire up the Elfinder. Double clicking on an item I would like to have back the item url in the text field.
This is pretty much the exact functionality you have integrated with the Editors, but I just needed naked, without the editors.
RE: Independent elFinder
-
Added by Csanad Novak 7 months ago
Ok. I've figured out finally.
Check out at: http://csanad.novak.net.nz/csanad/posts/PPS/redirect/
RE: Independent elFinder
-
Added by E R 6 months ago
Yes thank you keycap...I was doing this the wrong way. I essentially had an elfinder dialog in another jqueryui dialog. Much more efficient now...haha
Thanks!
-Twitch
(1-8/8)