This patch will add a setting so admins can specify css style attributes to inline images.

The module already add a class="inline" to inline images so you can add your attributes to the CSS file. The problem for me are that it will not work when people read you story/blog via the RSS feed and a news reader.

Thanks for making this module by the way, it's the best/easiest way to add images to a post in my opinion.

(The patch also add some spaces around a few equal signs.)

CommentFileSizeAuthor
inline.module01.patch2.94 KBfrjo

Comments

matteo’s picture

Thanks for the help, I'll take a look at the code. However, there was another proposal to define a class parameter, that could simplify user coding of the tag.
Why are you saying that RSS feed does not display images ?? As far as I tried, I was able to do it...
Let me know, please !!
Matteo

frjo’s picture

Title: Add setting for inline image style attributes » Re: Add setting for inline image style attributes

I was unclear. The image show up just fine in the RSS-feed. But say you specify in your CSS file that the class "inline" should be float right and padding 5px etc. This will work on the site but will have no effect how the image is presented in the RSS feed.

If you instead add the style attributes directly to the img tag they will "follow" the image where ever it goes.

frjo’s picture

Title: Re: Add setting for inline image style attributes » Add setting for inline image style attributes

And I shouldn't play with the title when following up on a issue :-).

matteo’s picture

No problem....
I understand, now. I will merge your code with another requirement to be able to specify explicitly a 'class=' attribute. It will take some time, but please be patient....
Matteo

Richard Archer’s picture

Status: Needs review » Closed (duplicate)

This is all included in Bert's excellent patch:
http://drupal.org/node/32838