title: How can I check if textarea (tinymce) only contains space?
body: <p>I have a form using Tinymce, I need to check if it only contains space.</p>
  
  <p>I try using this function</p>
  
  <pre><code>function validation_form()
  {
      var content = tinyMCE.get('main-comment').getContent().replace('&amp;nbsp;','');
      if(content == "" || content == null || content == '&lt;p&gt; &lt;/p&gt;') {
          return false;
      }
  }
  </code></pre>
  
  <p>But it returns <strong>true</strong> when I input several spaces and submit, I want  it to return false instead.</p>
  
  <p>Can anyone help me?
  Thanks,</p>