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
CKeditor has its own built in function for retrieving data in a text editor:
function CheckForm(theForm) { textbox_data = CKEDITOR.instances.mytextbox.getData(); if (textbox_data==='') { alert('please enter a comment'); } }
Documentation