daothanh / tinymce
丝网 Tinymce 插件
v1.0.1
2023-09-16 10:55 UTC
Requires
- filament/filament: ^3.0-stable
- unisharp/laravel-filemanager: ^2.6
README
集成
- TinyMCE 6
- Laravel 文件管理器
安装
您可以通过 composer 安装此包
composer require daothanh/tinymce
发布资源
php artisan vendor:publish --tag="daothanh-tinymce-assets"
发布 Laravel 文件管理器的配置和资源
php artisan vendor:publish --tag=lfm_config php artisan vendor:publish --tag=lfm_public
创建符号链接
php artisan storage:link
可选地,您可以发布配置文件进行自定义
php artisan vendor:publish --tag="daothanh-tinymce-config"
用法
use Daothanh\Tinymce\Forms\Components\TinymceField; TinymceField::make('description');
自定义
简单编辑器
要使用预定义的简单编辑器,您可以使用 profile() 方法
TinymceField::make('description')->profile('simple');