1. Go to this page and download the library: Download rawilk/filament-quill 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/ */
rawilk / filament-quill example snippets
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
QuillEditor::make('content'),
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
use Rawilk\FilamentQuill\Enums\ToolbarButton;
QuillEditor::make('content')
->disableToolbarButtons([
ToolbarButton::BlockQuote,
ToolbarButton::Font,
])
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
use Rawilk\FilamentQuill\Enums\ToolbarButton;
QuillEditor::make('content')
->enableToolbarButtons([
ToolbarButton::CodeBlock,
])
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
QuillEditor::make('content')
->placeholders([
'USER_NAME',
'USER_EMAIL',
'CURRENT_DATE',
])
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
QuillEditor::make('content')
->onInit(<<<'JS'
function (quill, alpineInstance) {
// quill.on('selection-change', function (range, oldRange, source) {
// do stuff
// )};
}
JS)
use Rawilk\FilamentQuill\Filament\Forms\Components\QuillEditor;
QuillEditor::make('content')
->onTextChange(<<<'JS'
function (delta, oldDelta, source, alpineInstance) {
// handle it
},
JS)