| Install | |
|---|---|
composer require darvis/livewire-flux-editor-filemanager |
|
| Latest Version: | v1.1.3 |
| PHP: | ^8.2 |
Laravel Filemanager integration for Flux TipTap Editor with powerful image and file management.
composer require darvis/livewire-flux-editor-filemanager
php artisan flux-filemanager:install
For CI/non-interactive environments:
php artisan flux-filemanager:install --no-interaction
This interactive command will:
/filemanager) automaticallyresources/js/app.js automaticallyUse standard Laravel Filemanager package routes via config/lfm.php:
use_package_routes => trueurl_prefix => filemanagerThe installer configures this automatically.
Add to resources/js/app.js:
import { initLaravelFilemanager } from "../../vendor/darvis/livewire-flux-editor-filemanager/resources/js/laravel-filemanager.js";
import Link from "@tiptap/extension-link";
import Image from "@tiptap/extension-image";
import "../../vendor/darvis/livewire-flux-editor-filemanager/resources/css/tiptap-image.css";
import "../../vendor/darvis/livewire-flux-editor-filemanager/resources/css/file-link-modal.css";
// See examples/app.js for the Flux-safe extension registration block.
initLaravelFilemanager();
When you run php artisan flux-filemanager:install, this setup (including Flux-safe extension registration) is added to resources/js/app.js automatically.
Then build:
npm run build
📖 For detailed installation with TipTap configuration, see docs/INSTALLATION.md
<flux:field>
<flux:label>Content</flux:label>
<x-flux-filemanager-editor wire:model="content" />
<flux:error name="content" />
</flux:field>
{{-- Minimal toolbar --}}
<x-flux-filemanager-editor wire:model="description" toolbar="minimal" />
{{-- Full toolbar --}}
<x-flux-filemanager-editor wire:model="content" toolbar="full" />
{{-- Custom toolbar --}}
<x-flux-filemanager-editor wire:model="content" :toolbar="false">
<flux:editor.toolbar>
<flux:editor.bold />
<flux:editor.image />
</flux:editor.toolbar>
</x-flux-filemanager-editor>
<div class="prose max-w-none">
{!! $page->content !!}
</div>
Cmd/Ctrl + VPublish the config file:
php artisan vendor:publish --tag=flux-filemanager-config
Customize in config/flux-filemanager.php:
See full configuration options →
Complete working examples in examples/ directory:
app.js - Full TipTap configurationEditorDemo.php - Livewire componenteditor-demo.blade.php - Blade viewcomposer test
Arvid de Jong
Email: info@arvid.nl
MIT