From e5befdef3eb9b9366ed4a397f29bb085f7fe781a Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Mon, 11 Sep 2023 16:24:33 +0300 Subject: [PATCH] Update TipTapEditor.php --- src/Editors/TipTapEditor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Editors/TipTapEditor.php b/src/Editors/TipTapEditor.php index 1b45336..c4b12e6 100644 --- a/src/Editors/TipTapEditor.php +++ b/src/Editors/TipTapEditor.php @@ -4,7 +4,6 @@ use Filament\Forms\Components\Component; use Filament\Forms\Components\Textarea; -use FilamentTiptapEditor\Enums\TiptapOutput; use LaraZeus\Sky\Classes\ContentEditor; class TipTapEditor implements ContentEditor @@ -14,7 +13,8 @@ public static function component(): Component if (class_exists(\FilamentTiptapEditor\TiptapEditor::class)) { return \FilamentTiptapEditor\TiptapEditor::make('content') ->profile('default') - ->output(TiptapOutput::Html) + // @phpstan-ignore-next-line + ->output(\FilamentTiptapEditor\Enums\TiptapOutput::Html) ->extraInputAttributes(['style' => 'min-height: 24rem;']) ->required(); } @@ -25,6 +25,7 @@ public static function component(): Component public static function render(string $content): string { if (class_exists(\FilamentTiptapEditor\TiptapEditor::class)) { + // @phpstan-ignore-next-line return tiptap_converter()->asHTML($content); }