diff --git a/resources/views/tiptap-editor.blade.php b/resources/views/tiptap-editor.blade.php index 4cae0977..b6469a7f 100644 --- a/resources/views/tiptap-editor.blade.php +++ b/resources/views/tiptap-editor.blade.php @@ -4,6 +4,7 @@ $statePath = $getStatePath(); $isDisabled = $isDisabled(); $blocks = $getBlocks(); + $shouldSupportBlocks = $shouldSupportBlocks(); @endphp @if (config('filament-tiptap-editor.extensions_script') || config('filament-tiptap-editor.extensions_styles')) @@ -75,7 +76,7 @@ class="relative z-0 tiptap-wrapper rounded-md bg-white dark:bg-gray-900" @elseif (is_array($tool)) @elseif ($tool === 'blocks') - @if ($blocks) + @if ($blocks && $shouldSupportBlocks) @endif @else @@ -135,7 +136,7 @@ class="relative z-0 tiptap-wrapper rounded-md bg-white dark:bg-gray-900" > - @if (count($blocks) && (! $isDisabled) && in_array('blocks', $tools)) + @if (! $isDisabled && $shouldSupportBlocks)