Opened 8 years ago

Closed 8 years ago

#8381 closed Bug (fixed)

[ASP.NET] RequiredFieldValidator returns wrong result on first submit

Reported by: Wiktor Walc Owned by: Wiktor Walc
Priority: Normal Milestone: CKEditor 3.6.2
Component: Server : ASP.Net Version: 3.6.1
Keywords: Cc:

Description

This issue was reported in http://cksource.com/forums/viewtopic.php?f=11&t=22997

When using <asp:RequiredFieldValidator> for the <CKEditor:CKEditorControl>, then the validator returns an error on first submit, even if user types something in the editor.

After pressing the same button again, the validation returns no errors.

Attachments (3)

validator.aspx (788 bytes) - added by Wiktor Walc 8 years ago.
8381.patch (1.3 KB) - added by kaga 8 years ago.
8381_2.patch (4.5 KB) - added by Wiktor Walc 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by Wiktor Walc

Attachment: validator.aspx added

comment:1 Changed 8 years ago by Wiktor Walc

It looks like an issue known from FCKeditor.Net control, which is even described in docs:

FCKeditor will not work properly with the Required Field Validator when the EnableClientScript property of the validator is set to true (default). Due to a limitation in the default validation system, you must set it to false.

The same trick seems to work with CKEditor. However, it would be much better to save developers time and to find a workaround for this bug.

Changed 8 years ago by kaga

Attachment: 8381.patch added

comment:2 Changed 8 years ago by kaga

This path not solved this problem to end, but i think it's god way. http://cksource.com/forums/viewtopic.php?f=11&t=16429

Changed 8 years ago by Wiktor Walc

Attachment: 8381_2.patch added

comment:3 Changed 8 years ago by Wiktor Walc

Owner: set to Wiktor Walc
Status: newreview

comment:4 Changed 8 years ago by kaga

I think that the patch '8381_2.patch' is better and resolves the problem completely.

comment:5 Changed 8 years ago by kaga

Status: reviewreview_passed

comment:6 Changed 8 years ago by Wiktor Walc

Milestone: CKEditor 3.6.2
Resolution: fixed
Status: review_passedclosed

Fixed with [7285].

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