Hi again.

I'm having problems catching inline images with custom filters for creating more stylish picture footnotes. My regex pattern works as "Ruby operator //" in ReggexBuddy () (wich I think is the format custom filter uses).

The ouput html code generated by drupal is:

<img src="/ficheros/juego/16/title.png" alt="title.png" title="title.png" width="300" height="224" class="inline" />

and my regex search pattern is:

\<img src="(.*?)" alt="(.*?)" title="(.*?)" width="(.*?)" height="(.*?)" class="inline" \/>\

wich doesn't work at all. Any help would be apreciated.

Kind regards.

Comments

NoRandom’s picture

Autoanswer...

It seems there is any problem with filter ordering with "custom filter" or "inline". My filter ordering is:

  • Inline Filter (weight=0)
  • Decoration (wich is custom filter based) (weight=10)

Inline filter converts [inline:image.png] into proper html < img ... class="inline" > tags. But with this configuration, looking for "inline" (without the quotes) with Decoration filter -custom filter- the [inline:...] conversion gets ruined. So I asume the filter weights are no respected.

avpaderno’s picture

Status: Active » Fixed

As who opened the support request already find an answer to his question, I am setting this report as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.