Skip to content
Rails 3.1 Integration for Aloha Editor
Pull request Compare This branch is 14 commits behind locomotivecms:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app/assets/javascripts
lib
vendor/assets/javascripts/aloha
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
locomotive-aloha-rails.gemspec

README.md

Rails 3.1 Integration for Aloha Editor

The aloha-rails gem integrates the AlohaEditor editor with the Rails 3.1 asset pipeline.

Instructions

1. Add aloha-rails to your Gemfile

gem 'aloha-rails'

Then run bundle install.

2. Use AlohaEditor

Add to your application.js:

//= require aloha

and in your erb / haml /..etc layout

= stylesheet_link_tag 'aloha/css/aloha.css'

and use AlohaEditor in your view:

<script type="text/javascript">
    Aloha.ready( function() {

        // Make #content editable once Aloha is loaded and ready.
        Aloha.jQuery('#content').aloha();

    });
</script

Credits

Sam Pohlenz for his tinymce-rails plugin as a blueprint.

Contact

Feel free to contact me at didier at nocoffee dot fr.

Copyright (c) 2012 NoCoffee

Something went wrong with that request. Please try again.