Laravel version update
Laravel version update
This commit is contained in:
34
vendor/unisharp/laravel-filemanager/docs/customization.md
vendored
Normal file
34
vendor/unisharp/laravel-filemanager/docs/customization.md
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
## Routes
|
||||
1. Copy the routes in `/vendor/unisharp/laravel-filemanager/src/routes.php`
|
||||
|
||||
1. Make sure urls below is correspond to your route (remember to include type parameter `?type=Images` or `?type=Files`) :
|
||||
* CKEditor
|
||||
```javascript
|
||||
CKEDITOR.replace('editor', {
|
||||
filebrowserImageBrowseUrl: '/your-custom-route?type=Images',
|
||||
filebrowserBrowseUrl: '/your-custom-route?type=Files'
|
||||
});
|
||||
```
|
||||
* 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 views to `resources/views/vendor/unisharp/laravel-filemanager/` :
|
||||
|
||||
```bash
|
||||
php artisan vendor:publish --tag=lfm_view
|
||||
```
|
||||
|
||||
## Translations
|
||||
|
||||
1. Copy `vendor/unisharp/laravel-filemanager/src/lang/en` to `/resources/lang/vendor/laravel-filemanager/<YOUR LANGUAGE>/lfm.php`.
|
||||
1. Edit the file as you please.
|
Reference in New Issue
Block a user