How do you limit atom-text-editor mini input to numbers only?


Since <input type='number' /> doesn’t work, I’d like to use the native atom editor for number inputs. Is there a way to restrict the input to numbers only? For decimal numbers it should also allow a . as valid input.

Any ideas?

Native HTML input vs. Atom