Skip to content

Commit

Permalink
Merge pull request #513 from sibizwolle/nullable-toolbar-button
Browse files Browse the repository at this point in the history
Allow nullable buttons for tools
  • Loading branch information
awcodes authored Nov 29, 2024
2 parents fe02197 + ad158c2 commit 397a58c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/tiptap-editor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ class="relative z-0 tiptap-wrapper rounded-md bg-white dark:bg-gray-900 focus-wi
@elseif ($tool === '-')
<div class="border-t border-gray-950/10 dark:border-white/20 w-full"></div>
@elseif (is_array($tool))
@if(array_key_exists('button', $tool) && !is_null($tool['button']))
<x-dynamic-component component="{{ $tool['button'] }}" :state-path="$statePath" />
@endif
@elseif ($tool === 'blocks')
@if ($blocks && $shouldSupportBlocks)
<x-filament-tiptap-editor::tools.blocks :blocks="$blocks" :state-path="$statePath" />
Expand Down

0 comments on commit 397a58c

Please sign in to comment.