Ticket #625: fck_link.patch

File fck_link.patch, 717 bytes (added by David Zahler, 15 years ago)

Patch to add optional argument in SetUrl method. Argument allows setting protocol in link dialog when using custom link browser.

  • fck_link.js

     
    797797        OpenFileBrowser( FCKConfig.LinkBrowserURL, FCKConfig.LinkBrowserWindowWidth, FCKConfig.LinkBrowserWindowHeight ) ;
    798798}
    799799
    800 function SetUrl( url )
     800function SetUrl( url, protocol)
    801801{
     802    var sel = GetE('cmbLinkProtocol');
     803   
     804    if(protocol != undefined)
     805    {
     806        for(var i = 0; i < sel.length; i++)
     807        {
     808            if(sel.options[i].value == protocol)
     809                sel.selectedIndex = i;
     810        }
     811    }
     812   
    802813        GetE('txtUrl').value = url ;
    803814        OnUrlChange() ;
    804815        dialog.SetSelectedTab( 'Info' ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy