This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have a plugin which I have added TinyMCE to. I would like to add a button that adds the Media Manager like the Wysiwyg Editors plugin does for the Backend. I had a look at that plugins settings and note the ocmediamanager plugin but it seems to require the backend Javascript libraries. Is there a way to reference the required libraries to make this work for the frontend. I have seen other posts on adding Media Manager to the front end with no definitive answer.
-
Follow Laravel Filemanager installation guide here https://unisharp.github.io/laravel-filemanager/installation. (recommend version 1.9.2 or below because after this version still have a problem with auth middlewares and I don't know how to fix it)
-
Open /config/lfm.php and add your own assets path for your icon example
'assets_directory' => '/themes/[your_theme_name]/assets',
-
remove 'auth' config in middlewares option.
middlewares' => ['web'],
-
Open vendor/unisharp/laravel-filemanager/src/views/index.blade.php. We have to replace all css and before and javascript before