Apr 102007
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
No Responses to “FckEditor 0.4.1 Available”
Sorry, the comment form is closed at this time.












Scott,
You’re the best!!!
Any word if you’ll be updating the latest version of FCK (2.4.2 I think)? Also, would love a non-model tag helper.
Keep up the great work.
Hey Scott,
Sorry I haven’t looked into the 2.4.x update yet. I have the whole set of instructions to update it (since I’ve done it once before locally). I just need a good chunk of time to do it in.
I assume we would put it in a new branch, or would you be willing to tell be how to get the old version (tag)? It’s been working well enough with 2.4.1 for a while now.
Nathan.
Hi Scott,
Thanks for a great plugin!!!
I have a problem. I install the plugin perfectly, but I can’t to upload images…. I have a routing error
Processing ApplicationController#index (for 127.0.0.1 at 2007-04-12 01:12:57) [POST]
Session ID: fa03b38dc0f7f79e6f2969865237b6e6
Parameters: {"Type"=>"Image", "NewFile"=>#<File:/tmp/CGI7606.0>}
ActionController::RoutingError (no route found to match "/admin/fckeditor/upload" with {:method=>:post}):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:1266:in `recognize_path’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:1256:in `recognize’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:40:in `dispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/webrick_server.rb:113:in `handle_dispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/webrick_server.rb:79:in `service’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’
…..etc
In fckcustom.js:
FCKRelativePath = ‘/admin’;
I want to put the editor in:
http://www.example.com/admin/page/new
http://www.example.com/admin/article/new
What’s the problem?????
@Andrew, thanks!! I haven’t had a look at upgrading yet. Although hopefully Nathan will give me a hand so it could happen in the not too distant future.
@Nathan, A new branch seems like the best place, then we can rearrange svn on release to be a bit more useful moving forward.
@Juanjo, have to have a ponder on that.
Cheers
Scott
FCKeditor plugin with 2.4.2 source is available via svn://rubyforge.org/var/svn/fckeditorp/branch/TRY-NY-upgrade
Note that the spell checker is now configured in fckcustom.js. It should work fine, but I honestly have never tested it. In fact, this whole thing needs testing, so it’s not a real release, just a TRY branch
Even though I didn’t modify the trunk/, there is a tag/REL-0.4.1 for the current version. There is also a vendorsrc/ folder with releases 2.3.2 and 2.4.2 of the fckeditor src. A file called drop.txt in this folder contains details on the vendor drop process.
Enjoy.
First, let me say _thank-you_ for providing this plugin; it’s been great to have file and image uploading in rails without resorting to php asp et al.
Next, I got the same error as Juanjo: no image uploading. However, I was able to track down the source of the error thanks to this post:
<a href="http://izumi.plan99.net/blog/?p=27">http://izumi.plan99.net/blog/?p=27</a>
So, the fix was easy:
In vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb line 137 change
<pre><code>
unless “#{file.class}” == “Tempfile”
</code>
</pre>
to
<pre>
<code>
unless “#{file.class}” == “Tempfile” or “#{file.class}” == “StringIO”
</code>
</pre>
As it happened, both Juango and I tried image uploading with a file that was too small (mine was only 3K.) It would have worked had I tried it with a larger file.
FWIW, I used the "TRY-NY-upgrade" branch, and it’s been working fine.
However, the whole installation process wasn’t seamless. ruby gems only finds an old version of this plugin, and I couldn’t force it to download from the svn server; I had to download it manually, and then run rake fckeditor:install. It took me awhile to discover that the unzipped file had to reside in the plugins folder: the README doesn’t say so, it assumes you know so.
Anyway, I’m greatly pleased with this plugin. Thanks again!
Hi Nathan,
I desperately need to be able to manually set upload path to upload/hostname/images (upload/hostname/flash for animations), hostname is a variable extracted out of the URL. Can you point me to some place in your code?
Cheers,
Petr
Does the FCKEditor plugin work with EdgeRails?
@Sergiu – hi, I’m actually not sure. Any info you can supply would be very useful.
I will get round to trying it soon I expect.
Cheers
Scott
I’m working with EdgeRails, I have the following code:
<br /><br />
<%= javascript_include_tag :fckeditor %>
…
<% form_for(@article) do |f| %>
…
<%= fckeditor_textarea( "article", "body", :toolbarSet => ‘Simple’, :width => ’100%’, :height => ’200px’) %>
…
<% end %>
With this code I get the following error at the line where fckeditor_textarea is located:
The error occurred while evaluating nil.relative_url_root
Haven’t found the solution yet, I’ll let you know when I do.
hi,everybody,how can I get this package?I found no link to download it.
Hi phg,
Do this:
ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor
Cheers
Scott
I get an method not found error for ‘relative_url_root’ in fckeditor.rb (fckeditor_textarea method). I’m using Rails 2.2.2, maybe it is deprecated?
Fix (untested, just works for testing purposes):
#js_path = "#{request.relative_url_root}/javascripts"
js_path = "../javascripts"
Hi Scott,
Very very thanks for the plugin. I have read the posts people wrote on its usage and they are great. But unfortunately I couldn’t make it work for AJAX based form_remote_for or remote_form_tag. It continue giving me routing errors like the one below -
————————————————–
Routing Error No route matches "/proposal/details/editor/fckeditor.html" with {:subdomain=>"", :protocol=>"http://", :remote_ip=>"127.0.0.1", :domain=>"n.localhost", :port=>3000, :content_type=>nil, :accepts=>"text/html,application/xml,*/*", :method=>:get, :request_uri=>"/proposal/details/editor/fckeditor.html?InstanceName=section_description&Toolbar=Default"} -
————————————————–
This is all that I did before using the plugin -
1. Downloaded plugin ver 0.5.1 from the rubyforge page.
2. Copied it to my vendor/plugins directory. Copied the content of /fckeditor_plugin/javascripts to /public/javascripts.
3. Set javascript_include_tag ‘fckeditor’ to my application layout file
4. Following your standard documentation provided following tags to render fckeditor on the page for section edit page, for section.description field -
<%= fckeditor_textarea( "section", "description", :ajax=>true ) %>
Where did I go wrong?
It gave me the routing error WHY?