FCKeditor on Rails goes plugin
Just a quick announcement, FCKeditor on Rails will run in Rails 1.2 as a plugin (with a little help), more info on the blog or in trac.
10 Responses to 'FCKeditor on Rails goes plugin'
Leave a Reply
You must be logged in to post a comment.
on March 3rd, 2007 at 5:04 am
undefined method `fckeditor’ for #:0×46fc6fc>
Extracted source (around line #4):
1:
2:
3:
4: ‘600px’, :height => ‘500px’}, # fck options
6: {:class => ‘fancy’} # html options
7: ) %>
Any idea why?
-Mystifier
on March 3rd, 2007 at 8:25 am
Rails version?
Which plugins are you using to include FCKeditor (engines or appable)?
What does your plugins setup look like in environment.rb?
That will give me enough info to figure out what’s up.
on March 8th, 2007 at 5:07 am
Hi there!
I can’t get the file browser to work. The connector thing returns an empty string instead of the proper xml, and I can’t really figure out wath did you mean when you set up the connector something like “/fckeditor/connector” in the fkceditor helper. If I change that to one of the available connectors it gives back the source file as a response
Any advice would be greatly appreciated
on March 8th, 2007 at 1:34 pm
What version of Rails are you using?
Which method are you using to get this into your app Appable plugins or Engines?
I’ve had no problems getting this to work using either method.
There is a working rails app at http://underpantsgnome.com/dropbox/fckeditor.zip
on April 26th, 2007 at 9:06 am
michael,
i downloaded the .zip and i have the same error…
with rails 1.2.3 and 1.2.2
undefined method `fckeditor’.
when i put
helper :fckeditor
in controller
also after install you must create an empty file:/public/javascript/fckcustom.js
on April 26th, 2007 at 11:55 am
I’ve updated the plugin to hopefully alleviate the issues listed above. I’d appreciate if somebody could let me know if this solves the problems.
Thanks
on June 5th, 2007 at 4:19 pm
I am having the same issues as above. After installing fckeditor in public/fckeditor and doing “script/plugin install http://svn.underpantsgnome.com/fckeditor_on_rails”, I restarted the server and tried to use fckeditor. All I got was “undefined method ‘fckeditor’”. I tried adding an explicit “config.plugins = [”engines”, “fckeditor_on_rails”, “*”]” line, but no change.
After reading the comments above, I tried pasting the fckeditor method from vendor/plugins/fckeditor_on_rails/app/helpers/application_helper.rb into app/helpers/application_helper.rb This got rid of the undefined method error and there are no other errors (in the log file or from Firefox), but I still don’t have a FCKeditor tool bar.
The simplest use test:
“100%”, :height => “600px”}) %>
And when I view source, there seems to be escaped CDATA info:
//
What am I missing?
on June 5th, 2007 at 4:20 pm
Sorry, and the version info:
$ script/about
About your application’s environment
Ruby version 1.8.4 (i686-linux)
RubyGems version 0.9.4
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2
Application root /rails/mr
Environment development
Database adapter mysql
Database schema version 6
Loaded plugins engines, fckeditor_on_rails, cms, rails_history-0.2, rspec, rspec_on_rails
engines version 1.2.0
fckeditor_on_rails version (unknown)
cms version (unknown)
rails_history-0.2 version (unknown)
rspec version (unknown)
rspec_on_rails version (unknown)
on August 17th, 2007 at 11:48 am
Good job on the plugin! I’m having a problem with the file browser, though. This isn’t unique to your plugin, however; I’ve posted about this on OK2LIFE, too (http://public.ok2life.com/welcome/index/49). I am getting the following error when I open the file browser:
XML request error: OK (200)
Requested URL:
/fckeditor/command?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F
Response text:
Also, I was able to create a folder earler, but I cannot upload files.
Here’s my install info:
Ruby version 1.8.5 (i486-linux)
RubyGems version 0.9.2
Rails version 1.2.1
Active Record version 1.15.1
Action Pack version 1.13.1
Action Web Service version 1.2.1
Action Mailer version 1.3.1
Active Support version 1.4.0
Edge Rails revision 4
Loaded plugins engines, fckeditor_on_rails, white_list
engines version 1.2.0
Thanks for any help you can provide.
on August 19th, 2007 at 5:27 pm
Hey folks, really sorry about all the delays in getting this problem resolved.
I believe that the current version in svn is working, there seems to have been an issue with the load order in the latest version of Rails causing the application helper monkey patches to get lost.
@John- I’m not sure about the perms issue, I don’t think I’ve ever seen that one before, if I can reproduce I will see what I can do.