F
Filament4w 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
MZX4w 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
MZX4w ago
The filament part
No description
Dennis Koch
Dennis Koch4w 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.