Ticket #6085: filebrowser-url-function.diff

File filebrowser-url-function.diff, 650 bytes (added by Mihai Secasiu, 14 years ago)

file browser url as function patch

  • _source/plugins/filebrowser/plugin.js

    old new  
    172172                params.CKEditorFuncNum = editor._.filebrowserFn;
    173173                if ( !params.langCode )
    174174                        params.langCode = editor.langCode;
    175 
    176                 var url = addQueryString( this.filebrowser.url, params );
    177                 editor.popup( url, width, height );
     175                if(typeof this.filebrowser.url == 'function' ){
     176                        this.filebrowser.url(params);
     177                }else{ 
     178                        var url = addQueryString( this.filebrowser.url, params );
     179                        editor.popup( url, width, height );
     180                }
    178181        }
    179182
    180183        /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy