My problem is that i want to set a textarea tag on required. But i soon as I include the CKEditor it wont work. I mean like, the Textarea is not empty put if I submit my form, a error message appiers that the textarea is empty.And if i press submit again it will work. What do I have to do, to set this field required.
I use HTML, Coldfusion and JS. Coldfusion doesnt matter at the moment.
ClassicEditor
.create(document.querySelector('#CKTextfeldDU'), {
toolbar: ['heading', '|', 'bold', 'italic', '|', 'link', 'bulletedList', 'numberedList', '|', 'undo', 'redo']
})
.catch(error => {
console.error(error);
});
<cftextarea id="CKTextfeldDU" style="width: 100%; max-width: 100%;" name="DBeschreibungDU" required="yes"></cftextarea>