'How to Get Value From Trumbowyg Textarea on Livewire
I created textarea form element using Livewire, I use Trumbowyg to make WYSIWYG. After sending data trhough submit on livewire, I coundn't get data from textarea, it's null and not passing validation. Here is my text area form:
<div class="form-group col-md-12">
<label for="content" class="box-title">{{ __('Content') }}</label>
<textarea id="content" name="content" class="form-control form-control-user @error('content') is-invalid @enderror" wire:model.defer="content" required autocomplete="content">
</textarea>
@error('content')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
Is there any solution for these?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|