We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc736a0 + 10b0e8d commit fce53e5Copy full SHA for fce53e5
resources/views/richtext.blade.php
@@ -4,3 +4,24 @@
4
'options' => [],
5
])
6
<textarea {{ $attributes->merge(['class' => 'textarea'.($hasError ? ' textarea-error' : '')]) }}>{{ $value ?: $slot }}</textarea>
7
+
8
+@props([
9
+ 'hasError' => false,
10
+ 'value' => '',
11
+ 'options' => [],
12
+ 'quillUniq' => 'quill'
13
+])
14
+<div
15
+ {{ $attributes->merge(['class' => ($hasError ? ' textarea-error' : '' }}
16
+ x-data="quill({
17
+__value: @entangle($attributes->wire('model')),
18
+options: {{ $options }},
19
+__config(instance, quillOptions) {
20
+return { {{ $config ?? '' }} };
21
+},
22
+})"
23
+ x-cloak
24
+>
25
26
+ <div x-ref="quill">{{ $value ?: $slot }}</div>
27
+</div>
0 commit comments