Changing text editor input type?


#1

Hi, I was able to get a view up and running, and even able to create a mini text editor, but now (and this may be a stupid question), how do I change the input type of this mini text editor to number? Is there a way to do so?


#2

Check out how go-to-line does it: https://github.com/atom/go-to-line/blob/8a3b0d37a8b2b706c210e05f85da741e9df74472/lib/go-to-line-view.js#L32-L36
(in your case, you would want only [^0-9])