0.0
No commit activity in last 3 years
No release in over 3 years
this gem adds extra functions for basecamps's trix.js toolbar to the assets-pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.4
~> 5.0.0.alpha
 Project Readme

TrixAddOn

This gem adds some extra features to the trix-editor. See the changelog for what is added. For now, it adds:

* underline
* lighter font
* format	 h1
			 h2
			 h3
			 h4
			 h5
			 p

Remember, like in the trix_on_rails-gem, it's merely playing with trix, coffeescript and rails5!

Dependency

This gem extends trix_on_rails. It depends on the gem. This gem depends on mysql2 and rails5. Just for fun.

Installation

Add this line to your application's Gemfile:

gem 'trix_add_on'

or if you want to install the latest from github:

gem 'trix_add_on',  :git => 'git@github.com:l-plan/trix_add_on.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install trix_add_on

Usage

please take a look at

add to application.js

 //= require trix_add_on

add to application.css

 *= require trix_add_on

Localization

for now only dutch

add to application.js

 //= require trix-local/nl
 //= require trix_add_on

require 'trix-local/nl' first!

Test

todo

TrixAddOn will use minitest. But as for now, the only thing to test is its presence.

Run rake to start the test-suite.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/trix_add_on/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

GitHub version