timo-de-winter / filament-redactor-field
A Filament field for the redactor WYSIWYG editor.
Package info
github.com/timo-de-winter/filament-redactor-field
pkg:composer/timo-de-winter/filament-redactor-field
Fund package maintenance!
Requires
- php: ^8.3
- filament/filament: ^3.3||^4.0||^5.0
- illuminate/contracts: ^13.0||^12.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^11.0.0||^10.0.0||^9.0.0
- pestphp/pest: ^4.0||^3.0
- pestphp/pest-plugin-arch: ^4.0||^3.0
- pestphp/pest-plugin-laravel: ^4.0||^3.0
This package is auto-updated.
Last update: 2026-07-28 00:52:50 UTC
README
A Filament field for the redactor WYSIWYG editor.
Compatibility
A single version of this package supports Filament v3, v4 and v5 — there is no separate branch or major version per Filament release.
| Requirement | Supported versions |
|---|---|
| PHP | 8.3, 8.4 |
| Laravel | 11, 12, 13 |
| Filament | v3.3, v4, v5 |
Composer resolves a working combination for you. Note that Filament decides which Laravel versions each of its own majors supports — Filament v4 and v5 require Laravel 11.28 or newer, for example.
Installation
# Install the package using composer composer require timo-de-winter/filament-redactor-field # Publish the assets php artisan filament:assets
Since Redactor is a paid package it is not shipped with this package. You should include Redactor yourself. This package assumes that window.Redactor is available. All plugins you want to use should be included as well.
You can publish the config file with:
php artisan vendor:publish --tag="filament-redactor-field-config"
This is the contents of the published config file:
return [ 'darkmode_enabled' => true, 'plugins' => [ \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::Alignment, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::BlockBackground, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::BlockBorder, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::BlockColor, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::BlockFontsize, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::BlockSpacing, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::Emoji, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::FontColor, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::FontFamily, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::FontSize, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::FullScreen, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::Icons, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::ImageResize, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::Limiter, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::SpecialChars, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::TextExpander, \TimoDeWinter\FilamentRedactorField\Enums\DefaultRedactorPlugin::Variable, ], ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-redactor-field-views"
Usage
RedactorEditor::make('content'), // You can also limit the characters RedactorEditor::make('content') ->maxLength(600), // You can also directly set the plugins that this specific editor should use (normally it looks at the config) RedactorEditor::make('content') ->plugins(['alignment', 'counter']), // OR ->plugins(function () { return ['counter']; })
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.