Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Http\Livewire;
use App\Rules\MaxLengthWithoutHtml;
use Livewire\Attributes\Rule;
use Livewire\Component;
class QuillEditor extends Component
{
public $content;
public function mount($content)
{
$this->content = $content;
}
public function updatedContent()
{
$maxLength = timebank_config('posts.content_max_input', 1000);
$this->validateOnly('content', [
'content' => ['required', 'string', 'min:10', new MaxLengthWithoutHtml($maxLength)]
]);
}
public function updated()
{
$this->dispatch('quillEditor', $this->content);
}
public function render()
{
return view('livewire.quill-editor');
}
}