I have an HTML form with a few fields. One of them is a textarea managed by CKEditor.
When the user wants to submit the form, I want to check whether he entered values
You can use the following snippet to check if the ckeditor has some text.
var _contents = CKEDITOR.instances.editor1.document.getBody().getText(); if (_contents == '') { alert('Please provide the contents.') ; }