Scott Rutherford

Life on and off the Rails

 

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.

8 Responses to “FCKeditor Plugin 0.5.1 Released”

  1. Harald Says:
    Flash Upload is not working for me. Hi, i'am using Rails 2.1 and your FCKEditor Plugin 0.5.1. If i try to upload a flash movie it fails with a javascript popup "Invalid file". On the console i can see an error: "application/x-shockwave-flash2-preview is invalid MIME type". The same error happens in your demo. But on this site it is working: http://www.fckeditor.net/demo What is the problem with this MIME-Typ. If downloaded a few *.swf files an they all are reported as xxx-flash2-preview Thank!
  2. Scott Rutherford Says:
    @Harald if you look in the fckeditor_controller at the top the mime type for flash is "application/x-shockwave-flash" I guess that needs expanding. But, for now you can just add your own mime types there.
  3. harald Says:
    Grr, i already tried that and it didn't work. But now it is :-). I guess i forgot to restart the server last time. Thank you
  4. Freddy Andersen Says:
    Great work guys! Just updated the plugin from 0.5.0 to 0.5.1 and I can now upload images to my rails 2.1 project. Thanks for you time Scott and George..
  5. George Chatzigeorgiou Says:
    Glad I could help. You should thank Scott. He did all the work :)
  6. Wouter Says:
    Hi, The plugin is really great but I'm wondering : Is it possible to also delete files when you upload files? (like in the pro version of tinymce) Thanks:)
  7. David Says:
    The 'Link File Upload' does not work for me (Rails 2.1 / FCKEditor 0.5.1). The file is uploaded, but the dialogue seems not to get a proper response from the server. When clicking on "OK", a javascript popup says "Please type the link URL". There is no javascript / ruby error. Here's the console output : Processing FckeditorController#upload (for 127.0.0.1 at 2008-07-14 16:59:31) [POST] Session ID: BAh7BzoMY3NyZl9pZCIlMGNkZjkxMTQ0ZmVkZTUzNDA5MmQyYmY1MDA2M2Ri MWQiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh c2h7AAY6CkB1c2VkewA=--ec88edb69e66e2f780a63dfe6bdb57b219fa5d49 Parameters: {"action"=>"upload", "controller"=>"fckeditor", "NewFile"=>#<file: />} Completed in 0.00141 (710 reqs/sec) | Rendering: 0.00037 (26%) | DB: 0.00000 (0%) | 200 OK [http://localhost/fckeditor/upload] @Wouter : you can't delete an uploaded file with FCKEditor. You need to use the CKFinder extension. Unfortunatly, the server-side API is only implemented for PHP / ColdFusion / ASP. I you do see a ruby/rails implementation, let me know... ;-) davidonlaptop [at a website named] gmail [dot] com
  8. Dorian Says:
    Hi there, thanks for a great plugin. I have it all working nicely except I'm a bit stuck using it in form_for with nested resources. I have the following: <% form_for([@client, @campaign], :html => { :multipart => true }) do |f| %> ... <% @campaign.video_jams.each do |video| %> <% fields_for "video_jams[#{video.id}]", video do |v| %> <%= fckeditor_textarea("video", "body", :toolbarSet => "Basic", :width => "400px", :height => "200px") %> <% end %> <% end %> ... <% end %> in the editor call I currently have 'video' which makes the editor bar only appear for the first object in the loop. I know that 'video' is not the right thing to use. Is this even possible? Any help much appreciated!
Leave a Reply

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