Closed (fixed)
Project:
Linkit
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2013 at 23:34 UTC
Updated:
8 Jan 2014 at 11:32 UTC
Jump to comment: Most recent
I want to add a dropdown to the linkit form when triggered from the WYGIWYG editor button that will add a query string on to the inserted link.
For example the dropdown could be test1 and test2 and I want to inserted URL to be:
www.example.com?query=test1
www.examples.com?query=test2
How can I achieve this?
Comments
Comment #1
anonYou can add a attribute plugin and then make some JS haxx to achieve that I guess.
Comment #2
bjalford commentedThanks. I've added a custom attribute plugin which shows my new field in the CKEditor popup. Where's the place to look to alter the href in the js?
Comment #3
bjalford commentedI want to use for custom case but I think a general case that could be useful to this module is the ability to add no-follow to a link. Happy to implement this as a patch if I can have a little direction on the above
Comment #4
anonThe "no-follow" is in another issue.
Comment #5
bjalford commentedFor reference the ticket is: https://drupal.org/node/2134405