Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | ckeditor-hide_error_indications-2001946-5.patch | 565 bytes | Loparev |
| |||
#3 | edit_issue_ckeditor-2001946-3.patch | 1.18 KB | Albert Volkman |
Comments
Comment #1
Albert Volkman CreditAttribution: Albert Volkman commentedHas there been any movement on this issue?
Comment #2
Albert Volkman CreditAttribution: Albert Volkman commentedThis patch adds the 'required' class, but I haven't figured out the proper way to add the error class yet.
Comment #3
Albert Volkman CreditAttribution: Albert Volkman commentedThis appears to work, please test.
Comment #4
jcisio CreditAttribution: jcisio at Axess Open Web Services commentedI didn't test, but it looks like the "required" setting is added globally for all fields. That does not look correct.
Comment #5
Loparev CreditAttribution: Loparev commentedComment #6
Loparev CreditAttribution: Loparev commentedComment #7
Loparev CreditAttribution: Loparev commented@jcisio, could you review this patch please?