I'm replacing the excellent link browser with my own to suit the FCKeditor to our content management system. Everything works fine until I should return the new URL to the editor from the customized link browser. How could I do that?
I would also be happy if I could select the target and the protocol from the external link browser. Anyway, they are not significant at this point - just "nice to have" features.
Thanks!
Ville
Mon, 04/25/2005 - 10:38
#1
RE: Returning the URL from custom link browser
window.opener.SetUrl( url, imageW, imageH, alt );
you can see the functions your looking for in the file fck_link.js.. the last function is
function SetUrl( url )
{
document.getElementById('txtUrl').value = url ;
OnUrlChange() ;
}
so you would call
window.opener.SetUrl( url )
God I love FCKeditor!!
Thanks Fred!!!!