Skip to content

daothanh/tinymce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyMce Component for Filamentphp 3

Integration

Installation

You can install the package via composer:

composer require daothanh/tinymce

Publish the assets:

php artisan vendor:publish --tag="daothanh-tinymce-assets"

Publish the Laravel Filemanager’s config and assets :

php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public

Create symbolic link :

php artisan storage:link

Optionally, you can publish the config file for customization:

php artisan vendor:publish --tag="daothanh-tinymce-config"

Usage

use Daothanh\Tinymce\Forms\Components\TinymceField;

TinymceField::make('description');

Customization

Simple editor

To use a predefined simple editor, you may use the profile() method:

TinymceField::make('description')->profile('simple');