F
Filament6mo ago
MZX

Form not submitting when using CKEditor

I am using CKEditor for the texarea field. The CKEditor is a blade component, that is being called in the view.
3 Replies
MZX
MZXOP6mo ago
The blade component
<script src="https://cdn.ckeditor.com/4.16.2/standard/ckeditor.js"></script>
<div>
<h3 class="font-semibold">{{ $label }}</h3>
<textarea name="{{ $name }}" id="{{ $id }}" cols="30" rows="10">{{ $value ?? '' }}</textarea>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
CKEDITOR.replace('{{ $id }}');
});
</script>
<script src="https://cdn.ckeditor.com/4.16.2/standard/ckeditor.js"></script>
<div>
<h3 class="font-semibold">{{ $label }}</h3>
<textarea name="{{ $name }}" id="{{ $id }}" cols="30" rows="10">{{ $value ?? '' }}</textarea>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
CKEDITOR.replace('{{ $id }}');
});
</script>
MZX
MZXOP6mo ago
The filament part
No description
Dennis Koch
Dennis Koch6mo ago
What do you mean by not subletting? The whole form or is just that field missing? You don’t bind the state anywhere Forms are based on Livewire and aren’t plain HTML forms.
Want results from more Discord servers?
Add your server