poldixd/laravel-filament-rich-editor-insert-html
Composer 安装命令:
composer require poldixd/laravel-filament-rich-editor-insert-html
包简介
A Filament rich editor plugin for inserting raw HTML from a modal.
README 文档
README
A small Filament rich editor plugin that adds an insertHtml toolbar button. The button opens a modal where users can paste HTML, then inserts that HTML into the editor at the current cursor position.
Requirements
- PHP 8.2 or higher
- Filament Forms 5.6 or higher
- Laravel 11, 12, or 13
Installation
Install the package with Composer:
composer require poldixd/laravel-filament-rich-editor-insert-html
Laravel will discover the service provider automatically.
Usage
Register the plugin on a Filament RichEditor field:
use Filament\Forms\Components\RichEditor; use poldixd\FilamentRichEditorInsertHtml\RichEditorInsertHtmlPlugin; RichEditor::make('content') ->plugins([ RichEditorInsertHtmlPlugin::make(), ]);
The plugin automatically enables the insertHtml toolbar button. Clicking it opens a modal with an HTML textarea and inserts the submitted HTML using Filament's rich editor command API.
Translations
The package ships with English and German translations. To customize them in your application, publish the language files:
php artisan vendor:publish --tag=filament-rich-editor-insert-html-translations
The files will be published to:
lang/vendor/filament-rich-editor-insert-html
Testing
composer test
License
The MIT License (MIT).
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-18