title: only allow numbers in contenteditable elements?
body: <p>How can I make <a href="https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable" rel="nofollow noreferrer"><code>contenteditable</code></a> elements only allow entry of numeric values?</p>
  <p>I tried to use something like:</p>
  <pre><code>onkeypress='return event.charCode &gt;= 48 &amp;&amp; event.charCode &lt;= 57'
  </code></pre>
  <p>...on elements that are <code>contenteditable</code>, but it still allows entry of alphabetic characters.</p>
  <p>Thanks!</p>