like number-editor, but accepts units and percentages