FCKeditor Plugin 0.2.1 Released
August 26th, 2006
I’ve just released the next version of the FCKeditor plugin. The main change in this version is the addition of the spell check functionality using ASpell. A big thank you to Ken Pratt for providing the patch for that and at the same time providing a solution (I hope) to the routing issues that some people have had.
If you already have this plugin installed you can upgrade by just deleting the existing install and getting it again. If you have altered the fckcustom.js file then you will need to add:
FCKConfig.SpellChecker = 'SpellerPages';
to it . If not just delete that too before reinstalling. You also need to be sure that ASpell is installed along with any dictionaries you want to use (If you are on windows check the README for the expected install directory).
Basically we (well he, I just extended it a bit) added the following to init.rb to add the required routes on startup:
# add a route for spellcheck
class ActionController::Routing::RouteSet
alias draw_without_spelling draw
def draw_with_spelling
draw_without_spelling do |map|
map.connect 'fckeditor/check_spelling', :controller => 'fckeditor', :action => 'check_spelling'
map.connect 'fckeditor/command', :controller => 'fckeditor', :action => 'command'
map.connect 'fckeditor/upload', :controller => 'fckeditor', :action => 'upload'
yield map
end
end
alias draw draw_with_spelling
end
The Flash upload should now also be working. It is worth noting that images are now uploaded to uploads/Image and flash movies to uploads/Flash. This means that you will need to either copy any existing images to the Image dir (so all existing posts continue to work) or move them (which’ll break any existing uses).
There is still an issue with the refreshing of the resource manager after a file upload from within it, but the upload does function.
Oh, and the extra #{value} has been removed thanks to x0n for pointing that out.
There is also an updated demo.
November 25th, 2007 at 11:18 PM Thanks so much for your reply to my rails error messge, Scott. Yes, I do have rails frozen. I'm with Dreamhost which has been good enough to do an upgrade anyway because of the latest security issues. I won't be able to try it 'till next Monday but will and will let you know how it goes. I will be happy to work with you to resolve the freezing issue later if you like. I very much appreciate the work you've done and for making it available. All the best.
November 25th, 2007 at 11:18 PM Sorry for the multiposts. Didn't see any evidence of posting and so did the typical click click click. I am indeed a sophisticated internet guy.
November 25th, 2007 at 11:18 PM Hi Imarsman, No probs, I deleted the extra copies!! I have Typo set up to use AJAX to post cos of spam so it can be hard to see that something is happening sometimes. Anyway, any help would be much appreciated. I haven't had anyone else report the same issue ("uninitialized constant ActionView (NameError)") yet, and I haven't had time to look at it, so I haven't made any progress at all since you left the comment. Thanks for the offer Scott.