Scott Rutherford

Life on and off the Rails

 

FckEditor 0.4.1 Available

April 10th, 2007

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

14 Responses to “FckEditor 0.4.1 Available”

  1. Andrew Says:
    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.
  2. Nathan Youngman Says:
    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.
  3. Juanjo Says:
    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: />} 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?????
  4. Scott Rutherford Says:
    @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
  5. Nathan Youngman Says:
    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.
  6. John Miller Says:
    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: http://izumi.plan99.net/blog/?p=27 So, the fix was easy: In vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb line 137 change
    
    unless “#{file.class}” == “Tempfile”
    
    
    to
    
    unless “#{file.class}” == “Tempfile” or “#{file.class}” == “StringIO”
    
    
    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!
  7. Petr Says:
    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
  8. sergiu Says:
    Does the FCKEditor plugin work with EdgeRails?
  9. Scott Says:
    @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
  10. sergiu Says:
    I'm working with EdgeRails, I have the following code:

    <%= 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.
  11. phg Says:
    hi,everybody,how can I get this package?I found no link to download it.
  12. Scott Says:
    Hi phg, Do this: ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor Cheers Scott
  13. Kris Says:
    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"
  14. Netin Says:
    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?
Leave a Reply

This blog used the Shay theme as a base and is powered by Mephisto