FCKeditor

This is a class which creates the correct HTML to use the FCKeditor.

TODO: -create connectors -create better docs

Howto use with rails:

  1. Install the gem

  2. require the gem in your controller like:

– require ‘rubygems’ require_gem ‘fckeditor’ –

  1. Create a new editor instance like this:

– @editor = FCKeditor.new(‘name_of_editor’) –

In your controller offcourse

  1. Change properties of the editor, you can change:

-instance_name, -width, -height, -toolbar_set, -value, -base_path, -xml -config

  1. Dump the map of the FCKeditor in the public map

  2. Create the editor in your rhtml file with:

@editor.create