Add option "attributes" to allow html attributes in embedded tags
guix - August 26, 2009 - 14:10
| Project: | Inline and link Drupal objects (Linodef) |
| Version: | 6.x-1.x-dev |
| Component: | Filter |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi, does Linodef support anchors for the node links [#NID] ?

#1
Currently not. This functionality could be added by using an option to add html attributes to tags (like done in l()). Though the code is easy to write I'm focused on taglist UI/wysiwyg API support. So I'm happy about patches against dev release (easier option handling than in RC3) to add this option.
#2
Thank you Roi, it's what I thought. I currently have no time for this, maybe later with other features too, but you can count on me to test WYSIWYG API support as soon as you release the code.
#3
With this patch Linodef adds attributes to existing opening tags in the embedded content (e.g. div, img) or if non are present it surrounds the content with new tags that incorporates the attributes.
E.g.
[#101:field_image,attributes="style='border: 1px solid #000;' title='an imagefield image with additional attributes'"]will output
<img style="border: 1px solid #000;" title="an imagefield image with additional attributes" class="imagefield imagefield-field_image" height="000" width="000" src="path" alt="alt" />#4
Patch contained a wrong function.