poldixd/laravel-filament-rich-editor-insert-html

A Filament rich editor plugin for inserting raw HTML from a modal.

Maintainers

Package info

github.com/poldixd/laravel-filament-rich-editor-insert-html

pkg:composer/poldixd/laravel-filament-rich-editor-insert-html

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0 2026-05-18 09:07 UTC

This package is auto-updated.

Last update: 2026-05-18 09:09:21 UTC


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).