Download & Extend

Set width of div container using image caption input filter with CKEditor

Project:Image Caption
Version:6.x-2.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

#1

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

AttachmentSize
1302780-set-regex-for-inline-syles.patch 465 bytes

#2

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.

AttachmentSize
1302780-set-regex-for-inline-syles-2.patch 465 bytes

#3

here's the patch

AttachmentSize
1302780-set-regex-for-inline-syles-3.patch 464 bytes
nobody click here