No commit activity in last 3 years
No release in over 3 years
This gem provides jQuery textileToolbar for Rails > 3.1 applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

 Project Readme

jquery-textileToolbar-rails

This gem provides the jquery textileToolbar plugin found at https://github.com/mauntrelio/jquery-textileToolbar/ for the Rails asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'jquery-textileToolbar-rails'

And then execute:

$ bundle install

Add this to 'app/assets/javascripts/application.js':

//= require textileToolbar/jquery.textileToolbar

Add this to 'app/assets/stylesheets/application.css':

*= require textileToolbar/_textileToolbar

Or, if you use scss:

@import 'textileToolbar/textileToolbar';

to 'app/assets/stylesheets/application.scss'.

That's it!

Now, to apply the textile toolbar, you need to manage from your JavaScript code, for instance:

$(document).ready(function(){
	$('textarea.textile').textileToolbar();
});

Please have a look to https://github.com/mauntrelio/jquery-textileToolbar/ for further information.