PHP code example of rahmanramsi / filament-editorjs

1. Go to this page and download the library: Download rahmanramsi/filament-editorjs 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/ */

    

rahmanramsi / filament-editorjs example snippets


use FilamentEditorJs\Forms\Components\EditorJs;

EditorJs::make('content')


[
    'header',
    'image',
    'delimiter',
    'list',
    'underline',
    'quote',
    'table',
    'raw',
    'code',
    'inline-code',
    'style',
]

EditorJs::make('content')->disableTools(['image', 'raw']);

EditorJs::make('content')->tools(['image', 'raw']);