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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ShaunDychko’s picture

use the next re-rolled patch instead (not this one).

ShaunDychko’s picture

oh 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.

ShaunDychko’s picture

here's the patch