@php $tools = $getTools(); $bubbleMenuTools = $getBubbleMenuTools(); $floatingMenuTools = $getFloatingMenuTools(); $statePath = $getStatePath(); $isDisabled = $isDisabled(); $blocks = $getBlocks(); $mergeTags = $getMergeTags(); $shouldSupportBlocks = $shouldSupportBlocks(); $shouldShowMergeTagsInBlocksPanel = $shouldShowMergeTagsInBlocksPanel(); @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() }}', floatingMenuTools: @js($floatingMenuTools), placeholder: @js($getPlaceholder()), mergeTags: @js($mergeTags), })" 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()" x-on:open-modal.window="handleOpenModal()" x-on:locale-change.window="updateLocale($event)" x-trap.noscroll="fullScreenMode" > @if (! $isDisabled && ! $isToolbarMenusDisabled() && $tools) @endif @if (! $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