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

Roi Danton - August 27, 2009 - 08:58
Title:node link anchor» Add option "attributes" to allow html attributes in embedded tags
Version:6.x-1.0-rc3» 6.x-1.x-dev
Component:Code (general)» Filter
Category:support request» feature request

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

guix - August 27, 2009 - 14:29

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

Roi Danton - November 2, 2009 - 15:36

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" />

AttachmentSize
linodef_filter_option_attributes.patch 9.31 KB

#4

Roi Danton - November 2, 2009 - 15:59
Status:active» needs review

Patch contained a wrong function.

AttachmentSize
linodef_filter_option_attributes.patch 9.51 KB
 
 

Drupal is a registered trademark of Dries Buytaert.