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.
CKEditor sets the width of images using inline styles instead of with the width attribute of the img tag. The regex in contrib/image_caption_filter needed changing to capture this. Patch is below. This patch will break compatibility with editors that instead set the img tag width attribute.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1302780-set-regex-for-inline-syles-3.patch | 464 bytes | ShaunDychko |
#2 | 1302780-set-regex-for-inline-syles-2.patch | 465 bytes | ShaunDychko |
#1 | 1302780-set-regex-for-inline-syles.patch | 465 bytes | ShaunDychko |
Comments
Comment #1
ShaunDychko CreditAttribution: ShaunDychko commenteduse the next re-rolled patch instead (not this one).
Comment #2
ShaunDychko CreditAttribution: ShaunDychko commentedoh my, sorry, keep going to the next patch... the regex also needs to account for the fact that sometimes spaces follow width: , and sometimes not.
Comment #3
ShaunDychko CreditAttribution: ShaunDychko commentedhere's the patch