Plugins - YUI Rich Text Editor

StarAdd to favorites

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 usesyuieditor end

new.html.erb:

<% form_for(@blog) do |f| %> <% f.textarea :post, :class => 'richtext_editor' %> <% end %>

blogs.html.erb:

<%= includeyuieditor_if_used %>

Customizing the configuration

default settings are in RAILSROOT/config/yuieditor.yml.

you can override the editor defaults in each controller:

class BlogController < ApplicationController usesyuieditor(: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

Installation

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

Lars Klevan

http://github.com/larsklevan/yui_editor

git://github.com/larsklevan/yui_editor.git

Rails' (MIT)

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?