This patch turns the name of each token key into a link. When this link is clicked, the token gets inserted at the cursor point into the last textarea or textfield to receive focus.

I've created a demo video to show this functionality in action:
http://www.lullabot.com/files/TokenJSPatch.mov

Notice that the window scrolls the appropriate field into view after the token is clicked.

CommentFileSizeAuthor
token.js_.txt1.29 KBjjeff
token.click_to_insert.patch1.29 KBjjeff
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eaton’s picture

I was definitely skeptical about this initially, and was concerned it would add more cruft. On the other hand, it's relatively lightweight and the functionality is nice... Any thoughts from other users and maintainers?

Dave Reid’s picture

Version: 6.x-1.11 » 7.x-1.x-dev

Status: Needs review » Needs work

The last submitted patch, token.click_to_insert.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Fixed

This has been implemented as a part of the token tree backport to D6.

Status: Fixed » Closed (fixed)

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