Hi guys,
I've just upgraded from FCKEditor 2.6.2 to CKEditor 3.1 and I'm going through it and recustomizing it for our configuration. In other places around our site we are using a file browser already - upon a link click we're using jquery plugins to popup a list of the user's images within a modal window with image preview rollovers on the file names and a custom selector as well as a bunch of other fancy UI stuff. I want to apply this to the "Browse Server" button when inserting an image with the CKEditor which means attaching a click event to the browse server button - easy enough. Using jquery I correctly identified the ID of the particular button and have attached a click event to it which successfully fires when you click on the button - however, the native behaviour of this button is to open a pop up window with whatever URL you specify in the "filebrowserImageBrowseUrl" configuration option - I want to STOP this behaviour and essentially customize it. In other words.. no tacky pop up! I've tried a variety of different tactics in order to accomplish this and then finally reserved myself to editing the editor's source code itself.
http://docs.cksource.com/ckeditor_api/s ... onfig.html states that this behaviour is "Defined in: plugins/filebrowser/plugin.js."
First off there are two folders called "plugins" - one in the root and one under _source. The plugins directory in the root does not have a subfolder called 'filebrowser' so one can safely assume the plugins folder inside of _source is where we want to be. However, I have tried editing the file and nothing change - I remove pieces of code and nothing happens - I purposely attempt to bomb the file and the scripts still work - if I delete that entire folder - nothing at all happens - it still continues to work. So I must not be in the correct place but I do not see any other filebrowser folder.
Can someone point me to the right place where I can remove the popup window behaviour of this window? I've tried squashing the default click event behaviour and changing the href attribute of the button but it doesn't work - popup persists no matter what I do.
Thu, 02/18/2010 - 22:27
#1