Closed (fixed)
Project:
Inline and link Drupal objects (Linodef)
Version:
6.x-1.x-dev
Component:
Filter
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 14:10 UTC
Updated:
16 Feb 2010 at 12:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
Roi Danton commentedCurrently 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.
Comment #2
guillaumeduveauThank 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.
Comment #3
Roi Danton commentedWith 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" />Comment #4
Roi Danton commentedPatch contained a wrong function.
Comment #5
Roi Danton commentedCommitted to D6 branch.
Comment #6
guillaumeduveauHehe nice thanks man :)
Comment #8
Michsk commentedThis does not work with FCKeditor and CKeditor. They change the apostrophe toe
'I used
on line 26, that worked for me.
Also see: http://drupal.org/node/708158