mei-labs / fi-tinymce
Filament TinyMCE Plugin
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- filament/filament: ^3.0-stable
- intervention/image: ^2.0
- unisharp/laravel-filemanager: ^2.7
This package is auto-updated.
Last update: 2024-05-04 09:41:41 UTC
README
Integration
Filament TinyMCE integrates with:
- TinyMCE 6
- Laravel Filemanager
Installation
To install the package via Composer, run the following command:
composer require mei-labs/fi-tinymce
After installation, publish the assets:
php artisan vendor:publish --tag="mei-labs-tinymce-assets"
Next, publish the Laravel Filemanager’s configuration and assets:
php artisan vendor:publish --tag=lfm_config php artisan vendor:publish --tag=lfm_public
Create a symbolic link for storage:
php artisan storage:link
Optionally, you can publish the configuration file for customization:
php artisan vendor:publish --tag="mei-labs-tinymce-config"
Usage
To use Filament TinyMCE, you can employ the following syntax in your code:
use MeiLABS\TinyMCE\Forms\Components\TinymceField; TinymceField::make('description');
Customization
Simple Editor
To utilize a predefined simple editor, you may use the profile()
method as follows:
TinymceField::make('description')->profile('simple');