When a form fails validation on a text field (for instance, no data entered in a required field), if CKEditor is enabled on that field it hides the tag with the "error" class, and replaces it. This means the user gets no visual feedback (such as red border or background) to indicate the error.

Googling around I see this raised as an issue at least back to 2011 (https://drupal.org/node/1325764), but was unable to find any resolution to the issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Albert Volkman’s picture

Issue summary: View changes

Has there been any movement on this issue?

Albert Volkman’s picture

This patch adds the 'required' class, but I haven't figured out the proper way to add the error class yet.

Albert Volkman’s picture

Version: 7.x-1.13 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
1.18 KB

This appears to work, please test.

jcisio’s picture

Status: Needs review » Needs work

I didn't test, but it looks like the "required" setting is added globally for all fields. That does not look correct.

Loparev’s picture

Loparev’s picture

Assigned: Unassigned » Loparev
Status: Needs work » Needs review
Loparev’s picture

@jcisio, could you review this patch please?

Status: Needs review » Needs work

The last submitted patch, 5: ckeditor-hide_error_indications-2001946-5.patch, failed testing.

The last submitted patch, 5: ckeditor-hide_error_indications-2001946-5.patch, failed testing.