Closed (fixed)
Project:
Image Caption
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
18 Mar 2010 at 15:38 UTC
Updated:
27 Jul 2011 at 07:12 UTC
Jump to comment: Most recent
I have a site user who likes to size the image she uploads with the IMCE interface. Unfortunately, when she uses the caption module it adds the caption, but strips out the inline style from IMCE. Any suggestions?
Comments
Comment #1
iantresman commentedYes, I'm getting the same. I've used IMCE to upload a large image, and then resized it in IMCE (by setting new width and height dimensions) to thumbnail size.
After I add the blank CSS class, .caption{}, add some title text, and the "caption" class, the caption displays, but the uploaded image displays full size, and by specified thumb size is ignored.
Comment #2
iantresman commentedFurther to my comment above, the width and height attributes added by IMCE still appear in the source code, so Image caption must override them.
It seems that the workaround is to create and define a new class, eg. width128 (I use CSS injector to insert new CSS), and create img.width128 {width:128px}, and this almost works, but doesn't set aside sufficient space for the caption, so some extra CSS is required.
Comment #3
Anonymous (not verified) commentedplus 1 (there should be a watcher module on d.0! instead of having to +1 every single post ...)
Comment #4
Anonymous (not verified) commentedok .. so .. if you add in your css
.caption{
width:100%;
height:100%;
}
then it works out fine ..hope this helps
post script - not sure how you all are getting the "caption" class in IMCE but i edited the image.js ->common.cssClass,'default':'caption'
I dont think this is best practice though. how are you all doing it? Cause there was no chance I was going to let the user add caption everytime they wanted a caption.
Comment #5
Anonymous (not verified) commented