Skip to content

Commit 8b99ed9

Browse files
authored
Fix: allow for custom extensions without PHP parsers (#592)
1 parent 65a3035 commit 8b99ed9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/TiptapConverter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function blocks(array $blocks): static
4545
public function getExtensions(): array
4646
{
4747
$customExtensions = collect(config('filament-tiptap-editor.extensions', []))
48+
->filter(function ($ext) {
49+
return $ext['parser'] ?? false;
50+
})
4851
->transform(function ($ext) {
4952
return new $ext['parser'];
5053
})->toArray();

0 commit comments

Comments
 (0)