Skip to content

dotnet236/aloha-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aloha::Rails

Power your rails 3 app with the Aloha Editor.

Installation

Add this line to your application's Gemfile:

gem 'aloha-rails'

Run the generator to install the Aloha config files:

rails generate aloha:install [--js]

Pass --js if you want the javascript version.

Usage

Edit these files to configure aloha:

* app/assets/javascripts/aloha-config.(coffee|js)
* config/initializers/aloha.rb

To setup aloha, add this in the <head> section of your template:

= javascript_include_tag 'application'
= aloha!

Finally, to make things editable, add a .editable-(long|short)-text to the HTML element:

div.editable-long-text
  p Lorem Ipsum...

About

Add aloha to rails 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published