Wiki image width control
Added by Michael Aye over 1 year ago
The width control for images, advertised on the Wiki formatting page:
!{width:300px}image_url!sets the width of the image
does not seem to work for me (running 1.0.4 here)
Could someone try it out and confirm?
Best regards,
Michael
Replies (5)
RE: Wiki image width control - Added by Michael Aye over 1 year ago
So nobody uses the width keyword??
RE: Wiki image width control - Added by Felix Schäfer over 1 year ago
What wiki formatting page are you referring to, couldn't find it through the direct help (top right of wiki text fields)?
Anyway, I'd be surprised if it worked as CSS styles for textile have been deactivated in 0.7 (or around there) because it's a security risk.
RE: Wiki image width control - Added by Michael Aye over 1 year ago
I meant this:
http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting#Inline-images
But then we should take it out of the Redmine guide, no?
RE: Wiki image width control - Added by Michael Aye over 1 year ago
So, putting this
#content .wiki img {
max-width: 98%;
}
in application.css will also not work? (I can't test it, have to ask the admin to put it)
RE: Wiki image width control - Added by Felix Schäfer over 1 year ago
Michael Aye wrote:
So, putting this
[...]
in application.css will also not work? (I can't test it, have to ask the admin to put it)
That would work as it's part of the css, putting custom styles in the wiki markup are ignored.
I think there was a plugin somewhere either reverting that behavior, or even making it optionally available for certain roles, I don't have it at hand though, so I'll let you search for it.
(1-5/5)