Skip to content

Mei-LABS/fi-tinymce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filament TinyMCE

Integration

Filament TinyMCE integrates with:

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');