Active
Project:
Image Caption
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 May 2010 at 15:23 UTC
Updated:
24 May 2011 at 11:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
delmarr commentedI'm having the same issue. subscribing.
Comment #2
delmarr commentedIn image_caption.js If you change line 14 to
$(this).wrap("<span class=\"image-caption-container\" style=\"display:block;" + style + "; \"></span>");This seems to fix my issue. It's on my list to learn to submit patches, but i hope this will do for now.
Comment #3
pwaterz commentedI made a few changes to the image_caption.js, seems to fix a lot of issues. Here is the patch.
Comment #4
hixster commentedFrom a few goes at getting image captions to work and my experience with this module- it seems that the 'alignment' variable never gets a value.
Maybe its' the way I have my WYSIWYG editor setup -I never get an align="value" in the final out put HMTL, only a style value with float="left" or "right"
So with that in mind , I changed line 9 in the image_caption.js to read
My image wrapper then has the following classes:
This means I can now add custom padding or margins depending on which side the image is floated on.
Hope that helps someone..