PHP code example of jkharley / filament-trumbowyg

1. Go to this page and download the library: Download jkharley/filament-trumbowyg library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jkharley / filament-trumbowyg example snippets

)

[//]: # (return [)

[//]: # (];)

[//]: # (

use JKHarley\FilamentTrumbowyg\Trumbowyg;

Trumbowyg::make('my-field')

php artisan vendor:publish --tag="filament-trumbowyg-config"

// config/filament-trumbowyg.php
'buttons' => [
    ['undo', 'redo'],
    ['strong', 'em', 'del'],
    'link',
    'fullscreen',
]

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

Trumbowyg::make('my-field')
    ->tagClasses([])
    ->changeActiveDropdownIcon(true)
    ->removeFormatPasted(true)
    ->tagsToRemove(['script'])
    ->tagsToKeep([])
    ->minimalLinks(true)
    ->linkTargets(['_self'])
    ->imageWidthModalEdit(true)
    ->urlProtocol('ftp')
bash)

[//]: # (php artisan vendor:publish --tag="filament-trumbowyg-config")

[//]: # (
bash)

[//]: # (php artisan vendor:publish --tag="filament-trumbowyg-views")

[//]: # (