Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9164 closed Task (invalid)

Problem with submitting form with space as values

Reported by: Md Humayun Rashid Owned by:
Priority: Normal Milestone:
Component: Server : PHP Version: 3.6.2
Keywords: Space Values Cc:


Suppose I am using ckeditor and want that users cant provide blank values. But If I restrict them with js and and user type only space three to four times and then submit that form then the validation does not work as it takes spaces as value. Now please tell me how to submit form without any white spaces.

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Please note that the CKEditor development website is not the right place for support requests.

Please refer to the following article for information on where to get support for all issues related to CKEditor:

Also try using our forums for advice:

If you are looking for professional assistance, the CKEditor development team is available via a dedicated support channel that is included in all our commercial licenses:

NOTE: you might want to think about:

  1. trimming your data before submitting
  2. or adding some key handler that filters spaces
  3. using CKEDITOR.dialog.validate.notEmpty
  4. and required: true property on dialog fields.

For the 3 and 4 you might want to check dialog code (ckeditor\_source\plugins\image\dialogs\image.js) for image plugin.

Last edited 12 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy