Improved validation of numeric text editors

This closes #216.