Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
token.js_.txt | 1.29 KB | jjeff | |
token.click_to_insert.patch | 1.29 KB | jjeff | |
Comments
Comment #1
eaton CreditAttribution: eaton commentedI 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?
Comment #2
Dave ReidComment #4
Dave ReidThis has been implemented as a part of the token tree backport to D6.