PHP code example of mohamedsabil83 / filament-rich-editor-extra
1. Go to this page and download the library: Download mohamedsabil83/filament-rich-editor-extra 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/ */
mohamedsabil83 / filament-rich-editor-extra example snippets
use Filament\Forms\Components\RichEditor;
RichEditor::make('content')
->label('Content')
->stickyToolbar()
->toolbarButtons([
['bold', 'italic', 'link'],
['ltr', 'rtl'],
['emoji'],
['fullscreen'],
]);
RichEditor::make('content')
->toolbarButtons(['ltr', 'rtl']);
RichEditor::make('content')
->toolbarButtons(['emoji']);
RichEditor::make('content')
->toolbarButtons(['fullscreen']);
RichEditor::make('content')
->stickyToolbar();
RichEditor::make('content')
->stickyToolbar(fn (): bool => $this->isLongForm);
bash
php artisan filament-rich-editor-extra:install