@php $tools = $getTools(); $bubbleMenuTools = $getBubbleMenuTools(); $floatingMenuTools = $getFloatingMenuTools(); $statePath = $getStatePath(); $isDisabled = $isDisabled(); $blocks = $getBlocks(); $mergeTags = $getMergeTags(); $shouldSupportBlocks = $shouldSupportBlocks(); $shouldShowMergeTagsInBlocksPanel = $shouldShowMergeTagsInBlocksPanel(); $customDocument = $getCustomDocument(); $nodePlaceholders = $getNodePlaceholders(); $showOnlyCurrentPlaceholder = $getShowOnlyCurrentPlaceholder(); // Mentions $mentionItems = $getMentionItems(); $emptyMentionItemsMessage = $getEmptyMentionItemsMessage(); $mentionItemsPlaceholder = $getMentionItemsPlaceholder(); $getMentionItemsUsingEnabled = $getMentionItemsUsingEnabled(); $maxMentionItems = $getMaxMentionItems(); $mentionTrigger = $getMentionTrigger(); $mentionDebounce = $getMentionDebounce(); $mentionSearchStrategy = $getMentionSearchStrategy(); @endphp
! $errors->has($statePath), 'ring-danger-600 dark:ring-danger-600' => $errors->has($statePath), ]) x-data="{}" @if (! $shouldDisableStylesheet()) x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tiptap', 'awcodes/tiptap-editor'))]" @endif >
getLocale() }}', bubbleMenuTools: @js($bubbleMenuTools), floatingMenuTools: @js($floatingMenuTools), placeholder: @js($getPlaceholder()), mergeTags: @js($mergeTags), customDocument: @js($customDocument), nodePlaceholders: @js($nodePlaceholders), showOnlyCurrentPlaceholder: @js($showOnlyCurrentPlaceholder), debounce: @js($getLiveDebounce()), mentionItems: @js($mentionItems), emptyMentionItemsMessage: @js($emptyMentionItemsMessage), mentionItemsPlaceholder: @js($mentionItemsPlaceholder), maxMentionItems: @js($maxMentionItems), mentionTrigger: @js($mentionTrigger), livewireId: @js($this->getId()), getMentionItemsUsingEnabled: @js($getMentionItemsUsingEnabled), getSearchResultsUsing: async (search) => { return await $wire.getMentionsItems(@js($statePath), search) }, mentionDebounce: @js($mentionDebounce), mentionSearchStrategy: @js($mentionSearchStrategy), linkProtocols: @js(config('filament-tiptap-editor.link_protocols')), })" x-init="$nextTick(() => { init() })" x-on:click.away="blur()" x-on:keydown.escape="fullScreenMode = false" x-on:insert-content.window="insertContent($event)" x-on:unset-link.window="$event.detail.statePath === '{{ $statePath }}' ? unsetLink() : null" x-on:update-editor-content.window="updateEditorContent($event)" x-on:refresh-tiptap-editors.window="refreshEditorContent()" x-on:dragged-block.stop="$wire.mountFormComponentAction('{{ $statePath }}', 'insertBlock', { type: $event.detail.type, coordinates: $event.detail.coordinates, })" x-on:dragged-merge-tag.stop="insertMergeTag($event)" x-on:insert-block.window="insertBlock($event)" x-on:update-block.window="updateBlock($event)" x-on:open-block-settings.window="openBlockSettings($event)" x-on:delete-block.window="deleteBlock($event)" x-on:locale-change.window="updateLocale($event)" x-trap.noscroll="fullScreenMode" > @if (! $isDisabled && ! $isToolbarMenusDisabled() && $tools) @endif @if (! $isDisabled && ! $isBubbleMenusDisabled()) @endif @if (! $isFloatingMenusDisabled() && filled($floatingMenuTools)) @endif
'prosemirror-w-sm', 'md' => 'prosemirror-w-md', 'lg' => 'prosemirror-w-lg', 'xl' => 'prosemirror-w-xl', '2xl' => 'prosemirror-w-2xl', '3xl' => 'prosemirror-w-3xl', '4xl' => 'prosemirror-w-4xl', '6xl' => 'prosemirror-w-6xl', '7xl' => 'prosemirror-w-7xl', 'full' => 'prosemirror-w-none', default => 'prosemirror-w-5xl', } ])>
class([ 'tiptap-content min-h-full' ]) }} >
@if ((! $isDisabled) && ($shouldSupportBlocks || ($shouldShowMergeTagsInBlocksPanel && filled($mergeTags)))) @endif