Closed (fixed)
Project:
Custom filter
Version:
5.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 14:49 UTC
Updated:
15 Jul 2009 at 13:20 UTC
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
Comment #1
NoRandom commentedAutoanswer...
It seems there is any problem with filter ordering with "custom filter" or "inline". My filter ordering is:
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.
Comment #2
avpadernoAs who opened the support request already find an answer to his question, I am setting this report as fixed.