title: How to keep text selected when using number input to change fontSize
body: <p>I'm trying to create a small richtexteditor by using <code>contenteditable</code> on a Div element but i've encountered a problem:</p>
  
  <p>I want to be able to change the <code>fontSize</code>
  of the current selection but when I use a number input field I lose the current selection so <code>document.execCommand('fontSize,false,myNumberValue)</code> does not work. Using <code>&lt;button&gt;</code> elements to execute the command does work but i'd rather use the number field, what are my options guys?</p>