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.
The fix posted for #2493443: The ajax_html_ids list hits server limit. does not account for the case when there are no selectors to exclude, and in jQuery 1.7 at least :not()
causes an error. just adding a test on the array length fixed it for me.
Comment | File | Size | Author |
---|---|---|---|
#1 | wysiwyg-excludeSelectors-2522462.patch | 558 bytes | brad.bulger |
Comments
Comment #1
brad.bulger CreditAttribution: brad.bulger commentedComment #3
TwoDNice catch, forgot to test that because I always had CKEditor enabled.
The if-statement also needs to wrap the clearing of the list when there are no exclusions to perform. Other than that the patch looks great!
I made the minor changed and pushed it to the 7.x-2.x branch.
Thanks a lot!