In one of my PHP webpage, i have a tinyMCE editor.Now, before hitting the 'Save' button, i am checking whether the tinyMCE editor is empty or not using the javascript as shown below:

HTML:

```
<input type="submit" id="auBtn" name="auBtn" style="display: block;" value='<?php echo $subBtnCap; ?>' onclick="return validate();"/>

```

Javascript:

```
function validate(){
    if ((tinymce.EditorManager.get('bDesc').getContent()) != ''){
       alert('Blog Description can not be empty.');
       return false;
    }
}

```

The above javascript code alerts me when the editor is empty.However, it still shows the alert message when the editor is not empty.Can you please tell me what could be wrong with my code.Thanks in advance.