diff --git a/resources/views/components/trix.blade.php b/resources/views/components/trix.blade.php index ee3ae40..af9f70e 100644 --- a/resources/views/components/trix.blade.php +++ b/resources/views/components/trix.blade.php @@ -1,12 +1,16 @@ -whereStartsWith(['x-', 'wire:']) }} - :class="$groupClasses" -> +@pushOnce ("css") + + +@endpushOnce + + @if ($label) @endif -
whereStartsWith(['wire:', 'x-']) }} + class="max-w-2xl w-full" + x-data="{ value: '{!! $value !!}' }" + x-id="['{{ $name }}']" + x-init="$refs.trix.editor.loadHTML(value)" + x-on:trix-change="value = $refs.input.value; $dispatch('input', value)" + x-on:trix-file-accept.prevent > - whereDoesntStartWith(['x-', 'wire:']) }} - input="trix-content-{{ $name }}" - > + +
+ whereDoesntStartWith(['x-', 'wire:']) }} + class="prose bg-white" + x-bind:input="$id('{{ $name }}')" + x-ref="trix" + > +
@error($nameInDotNotation)