Enable your website users to select files using elFinder File Browser. You can also use this tool as a file picker module for tinyMCE editor
Coming soon
- jQuery
- elFinder
Run bower install elfinder-picker
Downoad elFinder Picker
<script src="/path/to/elFinderPicker.js"></script>
<link type="text/css" rel="stylesheet" href="/path/to/elFinderPicker.css">
<script>elFinderPicker.config( { url: "path/to/elfinder.html" })</script>
{
url : '/path/to/elfinder/connector.php',
getFileCallback : function(file, fm) {
parent.elFinderPicker.oninsert(file, fm);
}
}
elFinderPicker.open( callback )
The callback function takes two arguments:
<button onclick="elFinderPicker.open( function( url, info ){ $("#input").val( url ) } )">Pick File</button>
tinymce.init({
selector: '.text-editor',
height: 350,
plugins: [ ],
file_picker_callback: elFinderPicker.open,
});