I have CKEditor wysiyg. Once user submits the article, i do the following:
if(!ctype_space($_POST['rtxt_article']))
{
//do something
}
The above code makes sure the input has some actual character(s) and its not a plain whitespaces. Its works well with regular textarea. However, it doesn't work with wysiyg.
I'm using CKEditor, once user clicks submit. The code hits //do something and ctype_space has no effect at all.
I check the HTML source, i found the output as whitespaces, no characters at all, so i wonder why ctype_space doesn't work with wysiyg textarea.
The output, after fetching the article from db, would look like this:
<div id="textcontent"> </div>
Any idea?