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.

Comments

shaundychko’s picture

StatusFileSize
new465 bytes

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

shaundychko’s picture

StatusFileSize
new465 bytes

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

StatusFileSize
new464 bytes

here's the patch