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.
Posted by Scott
Filed in FCKeditor and tagged with fckeditor,rails
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
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.
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
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…...
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
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…
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
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.
Read the rest of this entry
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
This release fixes an issue with the base path to the editor being hardcoded into the helper. The problem arose when hosting an app using named virtual hosts and aliases. e.g. hosting your app at www.mydomain.com/scotts/railsapp instead of www.mydomain.com/railsapp.
This should now all work….....
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
There is a new version of the FCKeditor plugin up. This fixes a problem I found when running tests. The alias method in the init.rb file was being called for every test and causing an infinite recursion. The README has also been fixed to remove the various typos people have found (thanks for the feedback).
As before you can get the plugin using:
ruby script/plugin install svn://rubyforge.org/var/svn/fckeditorp/trunk/fckeditor
There is also a demo
Posted by Scott
Filed in FCKeditor and tagged with javascript,rails
This release is basically a bug fix. The only really change is to apply the patch kindly provided by Nicola Piccinini which sorts out an issue with file upload from inside the resource manager.
There are a couple of other changes to do with the install and version numbers, but that is all internal to the plugin.
demo
Posted by Scott
Filed in FCKeditor and tagged with ajax,javascript,rails
There is a new version of the FCKeditor Rails plugin available details of how to get it and a demo are here.
This version fixes a problem with having multiple editors open at once on the same page and also adds a helper to allow multiple editors on the same Ajax form. This also now works with static html forms but you can just use the standard form helpers for that.
Read the rest of this entry
Posted by Scott
Filed in FCKeditor and tagged with ajax,javascript,rails