Показаны сообщения с ярлыком nicEdit. Показать все сообщения
Показаны сообщения с ярлыком nicEdit. Показать все сообщения

Simple nicEdit plugin for Ruby on Rails

Yesterday I've posted new Ruby on Rails plugin Simple nicEdit. It helps to use tiny rich edtior nicEdit in your rais application.

It's supposed, that you are already using jrails plugin, that replaces prototype with jQuery. If not, than install it:
$ ruby script/plugin install git://github.com/aaronchi/jrails.git

Installing Simple nicEdit plugin:
$ ruby script/plugin install git@github.com:sergio-fry/Simple-nicEdit.git

Add js to your layout:
<%= javascript_include_tag 'nicEdit', 'nicEditInit' %>

Use it in form
<% form_for @page do |f| %>
  <%= f.rich_text_area :body %>
<% end %>

Result:










Good Luck!




2008–2014 © Сергей Удалов Реклама Система Orphus