← Back to Plugins
  • Trumbowyg WYSIWYG

Trumbowyg WYSIWYG

Plugin information

by James Harley • 3 stars

Field Admin panel Editor

A Trumbowyg WYSIWYG editor field.

Support

#trumbowyg-wysiwyg on Discord

Views

904

License

MIT

Documentation

Screenshot 2022-11-27 at 18 04 49

Installation

You can install the package via composer:

composer require jkharley/filament-trumbowyg

Usage

use JKHarley\FilamentTrumbowyg\Trumbowyg;
 
Trumbowyg::make('my-field')

Buttons Pane Customisation

You can customise the buttons pane by passing an array of buttons to the buttons key in the filament-trumbowyg config file. This will overwrite the default buttons pane set by Trumbowyg and will be used across all Trumbowyg fields.

php artisan vendor:publish --tag="filament-trumbowyg-config"
// config/filament-trumbowyg.php
'buttons' => [
['undo', 'redo'],
['strong', 'em', 'del'],
'link',
'fullscreen',
]
Screenshot 2022-11-30 at 18 20 13

Alternatively you can pass an array of buttons to the buttons method on the field. You can also use this to overwrite the buttons set in the config file for a specific field.

Trumbowyg::make('my-field')
->buttons([
['undo', 'redo'],
['strong', 'em', 'del'],
'link',
'fullscreen',
]),

Future Additions