FCKeditor
This is a class which creates the correct HTML to use the FCKeditor.
TODO: -create connectors -create better docs
Howto use with rails:
-
Install the gem
-
require the gem in your controller like:
– require ‘rubygems’ require_gem ‘fckeditor’ –
-
Create a new editor instance like this:
– @editor = FCKeditor.new(‘name_of_editor’) –
In your controller offcourse
-
Change properties of the editor, you can change:
-instance_name, -width, -height, -toolbar_set, -value, -base_path, -xml -config
-
Dump the map of the FCKeditor in the public map
-
Create the editor in your rhtml file with:
@editor.create