Repository is archived
No commit activity in last 3 years
No release in over 3 years
Seamlessly integrates Aloha Editor into the Rails 3.2 (and upper) asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Rails 3.2 Integration for Aloha Editor

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

Instructions

1. Add aloha-rails to your Gemfile

gem 'locomotive-aloha-rails', require: '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) 2013 NoCoffee