public
Description: Integrate the Yahoo Rich Text Editor (http://developer.yahoo.com/yui/editor/) into a Rails application.
Homepage:
Clone URL: git://github.com/larsklevan/yui_editor.git
name age message
file MIT-LICENSE Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
file README Thu Mar 05 06:32:32 -0800 2009 update yui editor version to 2.7.0 [larsklevan]
file Rakefile Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
file TODO Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
file init.rb Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
file install.rb Sat Aug 02 14:53:07 -0700 2008 fix install.rb [larsklevan]
directory lib/ Thu Mar 05 06:32:32 -0800 2009 update yui editor version to 2.7.0 [larsklevan]
directory tasks/ Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
directory test/ Sat Aug 02 13:16:24 -0700 2008 initial import [larsklevan]
file yui_editor.yml.tpl Thu Mar 05 06:32:32 -0800 2009 update yui editor version to 2.7.0 [larsklevan]
README
YuiEditor
=========

Integrate the Yahoo Rich Text Editor (http://developer.yahoo.com/yui/editor/) into a Rails application.

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:

<head>
  <%= include_yui_editor_if_used %>
</head>

# 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 plugin:
http://wiki.github.com/larsklevan/yui_editor

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

Installation
============

script/plugin install git://github.com/larsklevan/yui_editor.git

Feedback
========

Send feedback and questions to:
tastybyte at gmail.com

Copyright (c) 2009 Lars Klevan, released under the MIT license