Opened 15 years ago

Closed 12 years ago

#3521 closed New Feature (invalid)

Should be easier to pass parameters to connector

Reported by: farmerzen Owned by:
Priority: Normal Milestone:
Component: File Browser Version: FCKeditor 2.6.4
Keywords: Cc:

Description (last modified by Alfonso Martínez de Lizarrondo)

A nice to have would be an easy way to pass parameters to the connector URL, without having to worry with connector link and parameters encoding!

Change History (5)

comment:1 Changed 15 years ago by Michael Osipov

Component: Server : JavaFile Browser
Milestone: FCKeditor 2.6.5

Based on this thread.

comment:2 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Component: File BrowserServer : Java
Description: modified (diff)
Keywords: connector parameters removed

The javascript integration already takes care of calling encodeURIComponent to encode the parameters to the connector, so this is only an issue with the java integration that isn't providing a system to help this situation.

FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;

comment:3 Changed 15 years ago by Michael Osipov

Component: Server : JavaFile Browser

This is not what the ticket is about. The OP wants to pass certain parameters to every FCKeditor instance at load time. They will be used in the connector. There is only one cumbersome way thrugh the *BrowserURL modification.

A Config param like FCKConfig.AdditionalConnectorParams = {param1: "value", param2: "value2"}. Would be more helpful for every connector.

comment:4 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added

Good idea. But note that the editor is not aware about the existence of "connectors". It just have URLs pointing to file browsers and uploaders. It could even be pointed to a plain HTML page, with no URL parameters at all.

In any case, as we're offering an integrated solution by default, it would not be wrong to offer s simple function to help with these settings. Something like this:

FCKConfig.ImageBrowserURL = FCKConfig.FileBrowserUrl( _FileBrowserLanguage, 'Image',
    {
        param1 : 'value1',
        param2 : 'value2'
    } ) ;

It would pass "param1" and "param2" straight to the connector.

comment:5 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: confirmedclosed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy