Ticket #2232: 2232.patch

File 2232.patch, 1.2 KB (added by Adrian Suter, 17 years ago)

Patch

  • editor/dialog/fck_link/fck_link.js

     
    1 /*
     1/*
    22 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
    33 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
    44 *
     
    645645
    646646function BrowseServer()
    647647{
    648         OpenFileBrowser( FCKConfig.LinkBrowserURL, FCKConfig.LinkBrowserWindowWidth, FCKConfig.LinkBrowserWindowHeight ) ;
     648        var uri = FCKConfig.LinkBrowserURL ;
     649        uri = uri.replace( /URL/g, encodeURIComponent(GetE("txtUrl").value) ) ;
     650        uri = uri.replace( /PROTOCOL/g, encodeURIComponent(GetE("cmbLinkProtocol").value) ) ;
     651
     652        OpenFileBrowser( uri, FCKConfig.LinkBrowserWindowWidth, FCKConfig.LinkBrowserWindowHeight ) ;
    649653}
    650654
    651655function SetUrl( url )
  • fckconfig.js

     
    1 /*
     1/*
    22 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
    33 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
    44 *
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy