Image class support
frednwright - October 11, 2007 - 04:17
| Project: | Image Assist |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Sorry if this is covered elsewhere, but I did my best to find it in the forums and could not resolve my issue. I am using TinyMCE with the image_assist plugin to insert inline images into my posts. I am wondering how to create a border around the image. I realize this is possible inserting the image with an HTML tag, writing the HTML for a border, and then using the "Full HTML" setting on Input Format, but each time I do this the border on the photo shows up in the preview but won't post when I hit submit. Can you please help me? thanks!

#1
Please clarify: Do you want to assign a custom border for certain images or a default border for all inline images?
#2
Hi Sun - I was looking for a way to do an individual border for select photos. Thanks for your help!
#3
I have a client where we need functionality like this. What we'd like is a set of user-defined classes and then the UI to select them from drupalimage. I presume that this would require modifications to drupalimage and the image filter. If I write the code to do this, would you consider including it, or is there a better way to achieve this sort of functionality?
Thanks,
--Andrew
#4
There may be a way around this for you. If there are some rules to where you want images to have borders or not – for example in teasers vs. full nodes or in different node types – then you could possibly use some css tricks, like:
#node-teaser img { border: none; }
#node-mynodetype img { border: 1px solid #000; }
We've been trying to make a stable bug-free release of img_assist for a while now, so I suppose new features aren't really on the agenda at the moment. If that wasn't the case, I would say that this is a nice feature but not something I would die for personally. But if enough people want it and someone wants to write it, then why not. It could live as a patch until the time is right.
#5
I would definitely love a feature that (optionally) replaces all current display options with a single select field to choose from predefined image display styles. Steps to realize this:
There could also be an enhanced version of this, implementing a new tab in Image Assist's settings to "map" one or more image style classes to Image sizes. "Align" and "Size" select fields in Image Assist's UI would then be replaced. So, for example, if I would select "staff" as class, Image Assist would automatically use image size "whatever" and apply
class="inline-staff"to the image.