daothanh/tinymce

Filament Tinymce Plugin

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

v1.0.1 2023-09-16 10:55 UTC

This package is auto-updated.

Last update: 2024-04-16 12:33:06 UTC


README

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