Thanks to George Chatzigeorgiou there is now a version of the FCKeditor plugin that works with Rails 2.1. I have put the packages on Ruby Forge and updated the repository. If you are interested as to what the issue was check out George’s comments on the previous post.

I created a new release for the fckeditor plugin today. It upgrades the version of the editor to the lastest 2.6 and also fixes the SanitizeHelper include issue which was causing problems with the spell check.

Other than that, little has changed. I think it is all still working ok, although I have only had time to complete a cursory check on the editor’s functionality.

The plugin is available from Ruby Forge or by doing this:

ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor

I added the UserVoice feedback system to the FCKeditor demo page today. So any bugs or ideas for the plugin can be stored in a central place. If you have found any issues recently (and can be bothered) it would be great if you could put them up there. I will copy over any ones I find going back over the comments. Ta.

Due to the incredible amount of spam it was getting I added a captcha today to the fckeditor demo using Captchator which is a pretty easy and quick way of doing it. It means you have to enter the text to create a new note but hopefully will mean things are a lot better.

I should point out that the spam was due to the site (i.e me and a false belief they wouldn’t find it) and nothing to do with the FCKeditor or the plugin.

There is a new version of the Fckeditor plugin available. It is a very minor bug fix release to deal with the improper constantizing of model names as reported by a couple of people. Oh and I also checked it works with Rails 2. The demo is running on 2.0.2.

The plugin is available from Ruby Forge or by doing this:

ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor

I have released a new version of the FCKeditor plugin, it contains a few fixes, a couple of new features and the 2.5 beta version of the editor itself. I chose to use that version as it comes with support for Safari!!

One of the changes is a new rake task (based on code from David Jones over at Resolve Digital. This provides the ability to download and install any version of the editor you like (including the nightly builds). Simply run

rake fckeditor:download VERSION='2.4.3'

VERSION can be any of the existing versions (2.5b, 2.4.2, etc) or if left blank the nightly build will be installed. The version printed out of the currently installed version of the editor is actually hardcoded (I realised having created the release!!) so please ignore that for now.

Other fixes include fixing the file upload to check for StringIO as well as Tempfiles, and a load of tiding and some fixes (including the basis of the code to allow the use of the text area helper without instantiating an object) from Hongli Lai. There are a couple of issues I have noticed with the editor itself but I will post them a little later.

The plugin is available from Ruby Forge or by doing this:

ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor

There is also a demo

This is a quick bug release to fix the outstanding install error. Sorry for the delay in providing a fix. You should have no problems now running:

rake fckeditor:install
Dec 282006

I have been asked a few times for the code for the FCKeditor demo. So I thought I would put it up here for anyone to download, and by here I mean here.

The tar includes the fckeditor plugin, the ajax scaffold plugin and the bits to get them working together. You will need to create a db and update the config files though.

A few people have said they have been having problems with the text area not appearing in Firefox. This isn’t a problem I have had but for those of you who have, thanks to James Penny there is a solution…..

Simply add something like :width => ‘400’, :height => ‘200’ to the fckeditor_textarea call and you should get the editor appearing as expected. Obviously you can change the dimensions to suite your needs.

The solution also explains why I never saw the issue — I have always had the dimensions specified……

I released a new version of the FCKeditor plugin today. It contains a couple of changes to the controller to fix a potential security issue and also a remote_form_for helper so that now you can do this:

<% fckeditor_remote_form_for :note,
                             :url => @options.merge(:controller => 'notes'),
                             :editors => { :note => ['text'] } do |f| %>
  <%= fckeditor_textarea( "note", "text", :ajax => true )
<% end %>

You still need to use the original fckeditor_textarea call as as of yet there is no f.fckeditor_textarea method.

I am currently trying to add a check for IsDirty to prevent accidental unloading of the editor and also looking at using the FCKeditor_IsCompatibleBrowser() function to degrade gracefully.

N.B If you are upgrading you will need to delete the public/javascripts/fckeditor directory before reinstalling…