Opened 4 years ago

Closed 3 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 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.94.0

Good idea.

comment:2 Changed 3 years ago by Alfonso Martínez de Lizarrondo

Resolution: fixed
Status: confirmedclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy