I'm wondering if anyone can help me with a modification to the existing link.js file? I've managed to add another tab to it which loads an iframedialog that lists content elements from our database - what i want to do now is allow users to click on any one of those listed items and have it fire back to the initial Link Info tab and change the Link Type to URL, the Protocol to <other> and set the URL to the string i'd pass from the iframedialog's content page.
I just can't work out which functions i need to call to achieve this, and how i'd call them from what's essentially anexternal page (the iframe content document - though it is stored in the plugins directory too).
I just can't work out which functions i need to call to achieve this, and how i'd call them from what's essentially anexternal page (the iframe content document - though it is stored in the plugins directory too).
Re: external calls to the link.js file
in the above i set the protocol to blank which is the same as selecting <other> in the dropdown.
now i just need to find a way to call functions in the link.js file so i can bundle the above into one function (since CKeditor seems to stop javascript processing within the pages of an iframe...) .
also need to find out if there's a way to tell it to swap back to the Link Info tab after the above has been triggered.