Filament TinyMCE integrates with:
- TinyMCE 6
- Laravel Filemanager
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"
To use Filament TinyMCE, you can employ the following syntax in your code:
use MeiLABS\TinyMCE\Forms\Components\TinymceField;
TinymceField::make('description');
To utilize a predefined simple editor, you may use the profile()
method as follows:
TinymceField::make('description')->profile('simple');