Opened 14 years ago

Closed 11 years ago

#6906 closed Task (invalid)

check if validation is correctly performed with jquery

Reported by: Alfonso Martínez de Lizarrondo Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Cc:

Description

I think that I've seen some other people claiming problems about that, so we should verify that it works, perhaps even including it in the jquery sample or as a more complex sample for jquery.

http://cksource.com/forums/viewtopic.php?f=11&t=21084

http://stackoverflow.com/questions/4491316/ckeditor-and-asp-net-mvc-3-requiredattribute

Attachments (1)

test.html (2.2 KB) - added by Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Jakub Ś

Attachment: test.html added

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.1

Please have a look at sample file.

jQuery Validator will rather not validate CKEditor but it can validate textarea, however there are two problems I have found with this issue:

  1. jQuery Validator does not validate disabled fields.

This can be omitted with setting ignore: ''

  1. It seems that validation happens before textarea gets updated.

This can be omited with the following code:

editor = $('#editor1').ckeditorGet();
editor.updateElement();

After you do those two things it's all about how good you know the validator and JavaScript.

As for the second issue I'm not sure if this shouldn't be done by default by jQuery adapter? Any extra thoughts anyone?

Anyway I'm confirming this task - It will just be a matter whether to leave it or change it to bug.

comment:2 Changed 11 years ago by Piotr Jasiun

This bug has been fixed during general jQuery adapter bug fixing #10281.

You still need to tell jQuery Validator to validate hidden fields using ignore: but now updateElement is called properly.

comment:3 Changed 11 years ago by Piotr Jasiun

Resolution: invalid
Status: confirmedclosed
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