Opened 9 years ago
Closed 8 years ago
#14574 closed New Feature (fixed)
Add CKEDITOR.ui.dialog.numericInput
Reported by: | Alfonso Martínez de Lizarrondo | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Dialogs | Version: | 4.0 |
Keywords: | Cc: |
Description
Just like CKEDITOR.ui.dialog.textInput but using input type="number" instead, and allowing to use the additional properties like min, max and step.
Benefits: if the value for a field must be a number, then this would be the best choice. For older browsers that don't support it there's no drawback, they will have the same behavior than type="text". For newer browsers the value will be restricted automatically so nothing but numbers can be added there and the UI might adjust to show up/down arrows to adjust the value. It's good for mobile and I would bet that also accessibility readers are happy if you use them.
Change History (2)
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.9 → 4.0 |
comment:2 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
Fixed with http://ckeditor.com/addon/numericinput
Good idea.