Homepage: Github
Author: emjot GmbH & Co. KG
The redcloth-rails gem enables RedCloth for rails (>= 3.1).
It provides helpers to integrate the TextileEditor toolbar.
The TextileEditor was created by Dave Olsen (Javascript) and Chris Scharf (Ruby/Rails) of West Virginia University Web Services .
The rails 3.0 support and gemification was realized by ryanfelton (https://github.com/ryanfelton/textile-editor-helper).
- RedCloth (>= 4.2)
- rails (>= 3.1)
- sass-rails
- coffee-rails
- jquery
Gemfile: gem "redcloth-rails"
Generate a config file
rails g textile_editor_config
Include the coffeescript and scss files in your asset manifests
app/assets/javascripts/application.js: (...) //= require textile-editor //= require ./textile-editor-config
app/assets/stylesheets/application.css: (...) *= require textile-editor
Enable the TextileEditor for your attributes in your form view:
<%= form_for(@post) do |f| %> (...) <%= f.textile_editor :content %> (...) <% end %> (Or, to generate the input field without the form builder:) <%= textile_editor :post, :content %>
Initialize the TextileEditor afterwards via:
<%= textile_editor_initialize %>
Please refer to RedCloth.
If you use haml you may want to look at the haml-contrib gem, which provides a :textile
filter.
redcloth.org
textile_editor_helper
textile_editor_helper
more info on textile
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request