FCKeditor Plugin 0.4.3 Released
February 6th, 2008
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
March 4th, 2008 at 09:44 AM Hello there Scott, thanks for the plugin! Quick Q: are there any plans to use the latest stable version of FCKEditor (2.5.1 atm) anytime soon? Just tried copying over the latest beta over the files in the public/ dir... but unfortunately that did not work :-/ -J
March 5th, 2008 at 02:29 PM The demo page has been spammed. After a second or so of viewing I am forwarded to an online pharmacy at this url: http://onlinepharmasearch.info/search.php?q=viagra I peeped the code and see tons of spam in there from these kinds of scum bots, which is normal, but you should really look into the redirect thing. Not only does it look bad but it also raises concerns about fck's security, even if it's not fck's fault. death to online pharmacies.
March 12th, 2008 at 02:32 PM Hi Chris
Thanks, I know. Just need to get time to sort it out.
March 14th, 2008 at 05:01 PM @Chris. Actual I hadn't realized about the forwarding off the page thing!!,
@Jorg. I will get round to it but you can do it yourself using the rake tasks. I will try to put a post outlining how to do that soon.
April 4th, 2008 at 01:24 PM Scott, Have you ever played with implementing active scaffold and fckeditor? I have been working on this for this past week and can get fckeditor to load but no data will update or create for that particular data field. its only one column so I have been playing with the fckeditor code as I thought the name and ID might matter to active scaffold - fckeditor gives a 'non-standard' value for both of those attributes compared to non-fckeditor columns. Let me know if you have any immidiate thoughts, been searching around online and there is not too much documentation aside from here and google groups which proved ineffective for me.
April 6th, 2008 at 05:59 PM I have problemm with spell checker strip_tags not found
April 15th, 2008 at 01:41 AM Thanks for this, Scott. I found, though, I had to make this change for textareas and other stuff in the editable content not to break out of the fckeditor. lib/fckeditor.rb 15c15 < value = value.nil? ? "" : value --- > value = value.nil? ? "" : h(value)
April 28th, 2008 at 08:16 AM for bublik: I've got this too, and here is the solution: "change line 116 from vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb from include ActionView::Helpers::TextHelper to include ActionView::Helpers::SanitizeHelper." found at http://cleverstartdev.com/articles/tag/strip_tags
May 8th, 2008 at 09:36 AM I have recently upgraded an application to Rails 2.0.2. The fckeditor itself works, however the image file manager does not. It looks like the connector is not being found by the rails router. I get the following error message in the log: Processing ApplicationController#index (for 127.0.0.1 at 2008-05-06 13:56:48) [GET] Session ID: 80ebd6bcf483bad22183bb3b01a9bd10 Parameters: {"CurrentFolder"=>"/", "Command"=>"GetFoldersAndFiles", "uuid"=>"1210096608457", "Type"=>"Image"} ActionController::RoutingError (No route matches "/fckeditor/command" with {:method=>:get}): Has anyone else seen this problem? Any hints about how to fix it, much appreciated in advance. -- John
May 29th, 2008 at 10:08 PM @John, I'll take a look tomorrow and try and get it sorted
June 1st, 2008 at 03:36 PM First of all, thanks for this great plugin. It makes using FCKEditor so easy. I hope that you won't mind me asking a quick question. I'm trying to offer the editor as an option in my application, but default to a plain text input. That is, when my user first loads the form (it's a blog-type app) they should just get a plain text box, with a link to rich text mode. When they click on that link the editor should load. I'm fairly new to javascript and to Rails, and I'm having trouble knowing where to start. Any ideas? I know plugin editors get loads of annoying n00b questions, so I will understand if you ignore this question. But I figured it may be something other users would like to know, so I thought I'd ask here on the offchance. Thanks!
June 2nd, 2008 at 12:54 AM @Lee, sounds like something that could be solved using partials and AJAX. So create your plain text box inside a div, then attach an AJAX action to that which replaces the contents of that div with a partial containing the FCKeditor helper code. Send me a mail if you like and I will give you a bit more detail. Unless anyone else would like to see that as a post / example in which case I could do something more public?
June 5th, 2008 at 10:10 AM Scott, you're awesome. That gives me a goood hint on where to start - I'll try figuring it out on my own (although don't be surprised if I do resort to a pleading email!)
June 13th, 2008 at 02:54 PM Scott, It needed a lot of adapting, but I've taken parts of your plugin and made it work as a "filter" for the Radiant CMS, http://www.radiantcms.org See: http://github.com/djcp/radiant-fckeditor/tree/master Thanks! You saved me a bunch of time with the controller alone.
June 14th, 2008 at 07:56 PM @Daniel, cool, glad you found it useful. Thanks for letting me know and for the credit on the README.
July 14th, 2008 at 08:29 AM For those having the issue with routing and the image/file manager. No route matches "/fckeditor/command" A quick (hack) solution is to copy the routes from the plugin directly into your config/routes.rb as such: map.connect 'fckeditor/check_spelling', :controller => 'fckeditor', :action => 'check_spelling' map.connect 'fckeditor/command', :controller => 'fckeditor', :action => 'command' map.connect 'fckeditor/upload', :controller => 'fckeditor', :action => 'upload'