Hello,
I am trying to add an onclick attribute to the Link plugin under the Advanced tab. It seems to be working (kind of) for text that is not already linked. However,If I try to edit the link then nothing appears in the textbox for the onclick event and I lose it once I update the link again.
I added this..
... as the last box in the Advanced tab and then added this...
... right after the advAttr function. I also updated my language file for the label. I basically tried to mimic the "Style" textbox right above it.
Am I missing something? I've attached my file. Any help or guidance would be greatly appreciated.
...
I am trying to add an onclick attribute to the Link plugin under the Advanced tab. It seems to be working (kind of) for text that is not already linked. However,If I try to edit the link then nothing appears in the textbox for the onclick event and I lose it once I update the link again.
I added this..
{
type: 'hbox',
children:
[
{
type: 'text',
label: linkLang.onclick,
'default': '',
id: 'advOnClick',
setup: setupAdvParams,
commit: commitAdvParams
}
]
}... as the last box in the Advanced tab and then added this...
advAttr('advOnClick', 'onclick');... right after the advAttr function. I also updated my language file for the label. I basically tried to mimic the "Style" textbox right above it.
Am I missing something? I've attached my file. Any help or guidance would be greatly appreciated.
...

Re: Add onlick attribute to Link plugin...