Numeric Input

Numeric Input is a plugin that allows you to use <input type = "number"> in the dialogs of CKEditor.

If you have created a dialog and want to add a field in which the user can only enter a number, the CKEditor only lets you use a text field and add a validation when the user clicks on the OK button in the dialog.

To improve the user experience and usability of their plugins, you can add the Numeric Input plugin to your editor.

With Numeric Input You can tell the browser user that the field is type = "number"; in this way the browser will:

  • Prevent the user to enter non-numeric values
  • Offer buttons to increase or decrease the numerical value
  • Prevent the user to enter a value out of range

With Numeric Input you can define the valid number range and the value to add or subtract when the user clicks the buttons to increase or decrease.

In version 0.2 we have added a numericinput_modifyfields configuration option to apply these improvements to existing dialogs without the need to change them, please take a look at our demo.

Screenshots

numericinput

8,033 downloads (view stats)

Releases

Plugin versions CKEditor versions
4.25 4.24 4.23

Version: 0.2

DownloadRelease notes

Included the optional configuration entry numericinput_modifyfields to allow easy customization of existing dialogs (eg: table, image, or other third party plugins)

Twitter Facebook Facebook Instagram Medium Linkedin GitHub Arrow down Phone Menu Close icon Check