Skip to content

FCKeditor Plugin 0.5.0

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

20 Comments

  1. Alexander Simonov wrote:

    Same issue with relative path to images…

    Processing FckeditorController#command (for 127.0.0.1 at 2008-06-09 16:51:57) [GET]
    Session ID: ebc8a1a671b53ffa2409dca632f7ab09
    Parameters: {"CurrentFolder"=>"/test/", "Command"=>"GetFoldersAndFiles", "action"=>"command", "uuid"=>"1213023117558", "controller"=>"fckeditor", "Type"=>"Image"}
    Completed in 0.00152 (658 reqs/sec) | Rendering: 0.00107 (70%) | DB: 0.00000 (0%) | 200 OK [http://localhost/fckeditor/command?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2Ftest%2F&uuid=1213023117558]

    Processing ApplicationController#index (for 127.0.0.1 at 2008-06-09 16:51:59) [GET]
    Session ID: ebc8a1a671b53ffa2409dca632f7ab09
    Parameters: {}

    ActionController::RoutingError (No route matches "/javascripts/fckeditor/editor/dialog/fck_image/DSC00087.JPG" with {:method=>:get}):

    and image put without path like ‘/uploads/Images/’

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  2. @Alexander sorry can you explain how this happens, i.e what do you do to get the error? does it happen on the demo?

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  3. Alexander Simonov wrote:

    i’m have rails app. i’m add your plugin and use on page like:
    <%= fckeditor_textarea ‘page’, ‘body’, :width => ’100%’, :height => ’600px’ -%>
    and nothing more.
    uploading imgae works, but inserting in editor not works correct.
    image puts as name without path ‘/uploads/Image/’

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  4. Mario wrote:

    Hi,

    I’m also noticing an issue. Is this a rails 2.1 incompatibility?

    "No expansion found for :fckeditor"

    at <%= javascript_include_tag :fckeditor %>

    Any thoughts?

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  5. Freddy wrote:

    Hi Mario looks like you either don’t have the plugin installed correctly or you are missing the :default javascript tag… I had todo this:
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag :fckeditor %>

    And I’m running Rails 2.1

    Maybe you need to run rake fckeditor:install

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  6. Freddy wrote:

    And I’m having the same issue that everyone else is having with the upload function… The image is uploaded fine but inserting or linking to an image does not work.. It just links to the image name not the full image url…

    Testing this on your Demo site works so I guess either rails 2.1 isnt working with the plugin or we are all doing something wrong..

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  7. @Freddy and @all, damn. Ok, let me have a play. The demo is actually on 2.0.2 still. I’ll check locally and see if I have the same issue.

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  8. Ok, so broken in 2.1: Looking for the answer at the mo…..

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  9. Mario wrote:

    Any luck with rails 2.1?

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  10. @Mario not yet. I’ve only had a short time to look at it so far. Suddenly seem to need about 30 hours in a day. Doing my best though. Any help or ideas would be much appreciated!!

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  11. leonardo wrote:

    I am having a problem with attachment_fu and fck editor using activescaffold.
    I am using both in a same controller.
    for the attachment_fu getting to work I need to set

    config.create.multipart = true

    the thing is that i noticed that using multipart true, the fckeditor does not work. It doesnt’ record anything in the DB.

    Does anyone knows how to solve this problem?

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  12. Don French wrote:

    I get the following error when installing. It seems to run though. Can you tell me if there really is a problem?

    All the install stuf…
    Exported revision 58.
    Plugin not found: ["svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor"]

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  13. I managed to solve the 2.1 incompatibility.
    In fckeditor_controller a @url variable is set that is used to prepend image paths, but rails doesn’t like @url when rendering the inline RXML. I replace @url with @@url and everything works fine.
    I guess 2.1 sets @url before rendering or something like that.
    Hope I’ve helped

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  14. Damn typos…
    I meant to say that I replaced @url with @uurl.

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  15. Andreas wrote:

    Thank you George, I replaced every occurence of @url with @uurl in the controller and it seems to work ok now.

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  16. @George, awesome, thanks. I’ll fix the plugin and get it released.

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  17. David wrote:

    Hey!

    Great plugin !

    I was wondering if you had any success integrating CKFinder (the advanced file browser for FCKEditor) with Rails ?

    Cheers,

    -David

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  18. @David, I haven’t tried to be honest. Anyone else? I’ll take a look though and see how simple it would be.

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  19. David wrote:

    Anyone have been using an equivalent file browser ??

    Thanks Scott !

    Wednesday, June 4, 2008 at 4:53 pm | Permalink
  20. Wawleffiree wrote:

    Great affair, didn’t thought reading this was going to be so stunning when I saw your title with link!

    Wednesday, June 4, 2008 at 4:53 pm | Permalink