title: Allow numbers and enter only on content editable div keypress
body: <p>Hey guys i'm creating a content editable div and it should accept numbers and enter key only on every key press is it possible? Thanks</p>
  
  <p><strong>Update</strong></p>
  
  <pre><code>if(event.keyCode &gt;= 48 || event.keyCode &lt;= 57){
     if ( event.keyCode == 13 ) {
     }
  } else {
      return false;
  }
  </code></pre>
  
  <p>On my code it's accepting numbers only but not the enter key. </p>