title: Is there a way to apply characters limit inside wp_editor function?
body: <p>I am trying to find out how to combine this code in resource box on a front end submission form but I need it to be limited to a certain number of characters.</p>
  
  <pre><code>&lt;?php wp_editor( get_option('resource'), 'resource', array('textarea_name' =&gt; 'resource', 'class'=&gt;'requiredField', 'textarea_rows'=&gt;'6','id'=&gt;'resource' ,'onkeyup'=&gt;'countChar(this)','media_buttons' =&gt; false)  );?&gt;&lt;?php if(isset($_POST['resource'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['resource']); } else { echo $_POST['resource']; } } ?&gt;
  </code></pre>
  
  <p>This code checks if the field is empty:</p>
  
  <pre><code>&lt;?php if(isset($_POST['resource'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['resource']); } else { echo $_POST['resource']; } } ?&gt;
  </code></pre>
  
  <p>How can I make that check inside wp_editor function? I need this to allow and simplify html inside my resource box to users...</p>
  
  <p>This is the javascript function that I am using ('onkeyup'=>'countChar(this)') inside but it's not working.</p>
  
  <p>Here Am I falling?</p>