Repository is archived
No commit activity in last 3 years
No release in over 3 years
Asset gem for Trumbowyg2 WYSIWYG editor, to be used with rails > 3.1.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1
>= 3.1
>= 3.2
 Project Readme

Trumbowyg2Rails

Rails asset wrapper for Trumbowyg

This is fork of trumbowyg_rails, because that repository has not been updated a lot of time.

Currently tracking code as of this change.

Installation

  1. Configure your Gemfile to use this gem:

     gem 'trumbowyg2-rails'
    
  2. Require the JavaScript files in app/assets/javascripts, after jQuery:

     //= require trumbowyg/trumbowyg
    

    Optional - Include any supported language packs from this list:

     //= require trumbowyg/langs/fr
    
  3. Require the Stylesheets in app/assets/stylesheets:

     *= require trumbowyg/trumbowyg
    

Update Instructions

In order to sync this repository with the upstream provider use the following workflow:

  1. Check out latest copy of parent repository

  2. Run npm install to install Trumbowyg dependencies

  3. Run gulp build to generate the sprite files

  4. Copy as follows from Trumbowyg => trumbowyg2-rails

     /dist/ui/images/* => /vendor/assets/images/trumbowyg/images
     /src/ui/sass/* => /vendor/assets/stylesheets/trumbowyg
     /src/trumbowyg.js => /vendor/assets/javascripts/trumbowyg
     /src/langs/* => /vendor/assets/javascripts/trumbowyg