1.8 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	Documents
Customization
Feel free to customize the routes and views if your need.
Routes
- 
Copy the routes in /vendor/unisharp/laravel-filemanager/src/routes.php 
- 
Make sure urls below is correspond to your route : 
CKEditor
javascript <script> CKEDITOR.replace( 'editor', { filebrowserImageBrowseUrl: '/your-custom-route?type=Images', filebrowserBrowseUrl: '/your-custom-route?type=Files', }); </script> 
And be sure to include the ?type=Images or ?type=Files parameter.
TinyMCE
javascript ... var cmsURL = editor_config.path_absolute + 'your-custom-route?field_name='+field_name+'&lang='+ tinymce.settings.language; if (type == 'image') { cmsURL = cmsURL + "&type=Images"; } else { cmsURL = cmsURL + "&type=Files"; } ... 
Views
- 
Copy the views from /vendor/unisharp/laravel-filemanager/src/views/ : php artisan vendor:publish --tag=lfm_view
Translations
- Copy vendor/unisharp/laravel-filemanager/src/lang/ento/resources/lang/vendor/laravel-filemanager/<YOUR LANGUAGE>/lfm.php
- Change the file according your preferences
