YUI Rich Text Editor plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/larsklevan/yui_editor.git
Example
=======
# Basic usage
blog_controller.rb:
class BlogController < ApplicationController uses_yui_editor end
new.html.erb:
<% form_for(@blog) do |f| %> <% f.text_area :post, :class => 'rich_text_editor' %> <% end %>
blogs.html.erb:
<%= include_yui_editor_if_used %>
# Customizing the configuration
default settings are in RAILS_ROOT/config/yui_editor.yml.
you can override the editor defaults in each controller:
class BlogController < ApplicationController uses_yui_editor(:only => [:new, :create, :edit, :update], :selector => 'blog_post') end
Instructions for configuring the editor:
http://developer.yahoo.com/yui/docs/YAHOO.widget.Editor.html#configattributes
Instructions for configuring the toolbar:
http://developer.yahoo.com/yui/examples/editor/toolbar_editor.html
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 3 months ago

