by Adam Weston
A Tiptap WYSISYG integration for Filament Admin/Forms.
Install the package via composer
composer require awcodes/filament-tiptap-editor
The editor extends the default Forms Field class so all other methods available on that class can be used when adding it to a form.
use FilamentTiptapEditor\TiptapEditor; TiptapEditor::make('content') ->profile('simple') ->required(); //->etc
Publish the config file.
php artisan vendor:publish --tag="filament-tiptap-editor-config"
The package comes with 3 profiles for buttons out of the box.
See filament-tiptap-editor.php
config file for modifying profiles to add / remove buttons from the editor.
You may also override the default file uploader with your own Livewire component and assign its ID to the media_uploader_id
setting in the config file.
See vendor/awcodes/resources/views/components/media-uploader-modal.blade.php
and vendor/awcodes/filament-tiptap-editor/src/Components/MediaUploaderModal.php
for implementation.