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 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.