FCKeditor 0.3.2 Released
October 2nd, 2006
This release tidies up some of the things I thought I’d got right with the last one, doh. However, it turns out I had overlooked the paths for the spell check and the resource manager. Both of these now dynamically configure so that you can place your install anywhere you fancy. Unfortunately there is a single piece of configuration now required, if, and only if your app is hosted away from the root of the server.
If you already have the plugin installed you will need to move the rename the fckcustom.js file in /public to something else, resinstall the plugin and then copy any changes you made in the config over. Then while you have the fckcustom.js file open simply change this line:
FCKRelativePath = '';
to suit your needs.
For example if your app is hosted at:
http://www.mydomain.com/myapp
Then this line should read:
FCKRelativePath = '/myapp';
And that (hopefully) should be that…....
November 25th, 2007 at 11:18 PM Could you provide a variable in fckcustom.js to allow absolute urls for the generated image/doc/etc. paths? I have 2 apps running on separate servers and relative urls won't work. Right now I'm changing line 79 of: javascripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html to: window.top.opener.SetUrl('http://example.com' + fileUrl); This modification is sketchy because fckeditor sometimes sets the width and height of a selected image to 0 and the image (obviously) doesn't show up. (Clicking "Reset Size" corrects this) Help! Thanks, Blake
November 25th, 2007 at 11:18 PM Also, is it possible to make FCKRelativePath a ruby variable? I like to avoid hard coding stuff.
November 25th, 2007 at 11:18 PM Hi Blake, I'll have a look at these, I think the later should be possible and would certainly be better than having to configure the js. Cheers Scott.
November 25th, 2007 at 11:18 PM Hey Scott, I think I have this almost working, but am having trouble with the URLs. Everytime I go from FCK to browse server, it gives me a popup with the error: Recognition failed for "/fckeditor/editor/filemanager/browser/default/browser.html" the URL is http://localhost:3001/admin/pages/edit_page/130 where 'admin' is a folder, that has the controller 'pages' in it running the action 'edit_page' number 130. I've been looking at the FCKconfig thinking that it's not reading FCKConfig.BasePath, but for some reason cannot change it? I would love and appreciate help if this is simple... Jason msn: jason@spincyclestudios.ca I am running it off