Ticket #2599 (reopened New Feature)
Allow an arbitrary query string, and propagate it to dialog boxes
| Reported by: | kennardconsulting | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | UI : Dialogs | Version: | |
| Keywords: | Confirmed | Cc: |
Description
Hey guys,
Thanks so much for FCKEditor - it really is a superb piece of work and you deserve all your success. I have a small feature request:
In FCKeditor._GetIFrameHtml, you do...
if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet;
...I would like to see this capability extended so that I can attach arbitrary things to the query string. For example...
new FCKEditor( 'x' ).extraParameters = 'foo=bar';
...which, in turn, get passed to every dialog box...
FCKDialogCommand.prototype.Execute = function() {
FCKDialog.OpenDialog( 'FCKDialog_' + this.Name, this.Title, this.Url + '?' + this.extraParameters
Why do such a thing? One of the best features (for me) about FCK is being able to tweak the dialog boxes to suit my needs. For example, I tweak fck_image.html and insert some server-side script to turn the image box into a dropdown SELECT of available images.
To do this at the moment, I have to override FCK in a number of places to feed a query parameter from my top-level page (the one that includes the TEXTAREA) into the image dialog box.
Native support for passing parameters along would be neat.