Skip to content

sergio-fry/Simple-nicEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleNicedit

Easy way to start using wysiwyg editor for Rails Application (nicEdit) — Read more

Usage

Use it in form

<% form_for @page do |f| %>
  <%= f.resizable_text_area :description %>
  <%= f.rich_text_area :body %>
<% end %>

Image upload

Add a lines in your controller:

protect_from_forgery :except => :index
uploads_nicedit_image :upload_action_name

And add :upload_url option to field:

<%= f.rich_text_area :body, :upload_url => url_for (:action => :upload_action_name) %>

Installation

Installing Simple nicEdit plugin:

rails plugin install git://github.com/sergio-fry/Simple-nicEdit.git

Add assets to your layout:

<%= include_nicedit_assets %>

Requirements

  • jquery

  • jquery.livequery

Good Luck!

Copyright © 2010 Sergei O. Udalov <sergei.udalov@gmail.com>, released under the MIT license

About

Plugin: Easy way to start using wysiwyg editor for Rails Application (nicEdit)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published